Using LDAP authentication with RStudio Workbench / RStudio Server Pro


RStudio Workbench (previously RStudio Server Pro) connects to LDAP via PAM. If you already have LDAP set up for the server you're running RStudio Workbench 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 configure the rstudio PAM profile in order to make sure it uses LDAP for their authentication. There are a few ways to do this; one way is install 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

If you need to use PAM sessions, you may need to call the pam_ldap plugin there as well.

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.