Aug 8, 2014: Setting up LDAP for use in Shiny
LDAP, or Lightweight Directory Access Protocol, has a long history of use. LDAP is usually used in large enterprise corporations where they store employee data and use it for single sign-on (SSO) and more. Single sign-on is where the company's LDAP directory integrates with other applications such as the company intranet using the protocol.
For companies using R as the programming language of choice, Shiny Server is incredibly useful as a server. Unfortunately, when authentication needs put in place, there are only a few options:
- Flat file—good if you don't add new users often and you don't want to have to reset the password.
- PAM—you need to know Linux well to set up, and it is restricting for a large user base like flat-file.
- Google—good if you know all your clients have an account.
- LDAP—until Shiny accepts using a database connection, LDAP seems like the best choice.
Getting a LDAP server running can be very tedious; in order to set up it up, you need to learn a lot about how the convoluted ldif files work with adding new entries. And, most of the information on the web can be limited on what server package to actually use. Here is how we set up our LDAP server to authenticate our clients.
Read more