Using LDAP authentication with RStudio Server Pro


RStudio Server connects to LDAP via PAM. If you already have LDAP set up for the server you're running RStudio Server on, you'll need to integrate it with PAM. If you've already done that with other utilities on the server, such as ssh or general logins, you may be able to copy that PAM profile to use with RStudio:

sudo cp /etc/pam.d/login /etc/pam.d/rstudio

Otherwise, you'll need to enable PAM sessions (see here) and configure the rstudio and rstudio-session PAM profiles in order to make sure they use LDAP for their authentication. This will typically require installing the plugin and calling it in the profile. Here's a very basic setup we've used in the past:


auth       sufficient
account    required
session    requisite


auth        required
account     [default=bad success=ok user_unknown=ignore]
password    sufficient
session     requisite

For testing, we'd recommend using the pamtester utility described in the Admin Guide here:

We'd really recommend reading through the PAM guides linked in the admin guide - LDAP and PAM are very powerful but may require quite a bit of specific configuration that we may not be able to provide.

Have more questions? Submit a request


Powered by Zendesk