Azure Active Directory integration with R Connect


We have setup our use base in Azure Active Directory and have installed R Connect on centos 7.

Based on the inputs suggested here:
We tried to configure the AAD user configuration but it does not identify users in our domain.
We can login using the admin credentials that we setup using portal but we can't access using users setup in AAD.
Can anyone help with this.
Thanks in advance.

cat /etc/rstudio-connect/rstudio-connect.gcfg
Address =

; RStudio Connect will listen on this network address for HTTP connections.
Listen = :3939

; Specifies the type of user authentication.
Provider = Password

[LDAP "LDAP Configuration"]
ServerAddress =
BindDN = "CN=RCon_ADSync,OU=AADDC Users,DC=xxxx,DC=xxx"
BindPassword = "xxxxxx"
UserSearchBaseDN = "OU=AADDC Users,DC=xxxx,DC=xxxxx"
Logging = true
;UniqueIdAttribute = "entryUUID"
;UsernameAttribute = "uid"
UserObjectClass = "user"
;UserEmailAttribute = mail
;UserFirstNameAttribute = givenName
;UserLastNameAttribute = sn

Log = ldap

There can only be one authentication provider. In your case this should be Provider = ldap. Otherwise the LDAP server will not be used. You will have to configure the admin via AD as well. But note that changing the authentication provider means a complete re-installation, c.f.

1 Like

The article you linked to has a few examples for both Active Directory and OpenLDAP which are the two most common LDAP vendors.
Unfortunately, you have used attribute values that only apply to OpenLDAP.

Here's an example of LDAP user attributes for Active Directory:

UserObjectClass = user
UsernameAttribute = sAMAccountName
UserEmailAttribute = mail
UserFirstNameAttribute = givenName
UserLastNameAttribute = sn
UniqueIdAttribute = objectGUID

If you were to use LDAP groups, here are the group attribute values for AD:

GroupObjectClass = group
GroupNameAttribute = cn
GroupUniqueIdAttribute = objectGUID

I hope that helps!

1 Like

Thanks all for quick reply,

Now we purged and we got the fresh install of rconnect.
Now we are able to pick ldap configuration. However, we are still getting below errors:

2018/12/04 13:45:46 /connect/src/connect/auth/providers/ldap/client.go:167: (ldap) [LDAP Connection ID ckUqaGv] Failed to bind to ldap server: unable to read LDAP response packet: read tcp> read: connection reset by peer

can anyone help us with this, why it would be the issue?


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.