This guide shows you how to install and configure a secure OpenLDAP service on Ubuntu 18.04 running in AWS. The service supports LDAP and optionally LDAPS.
In addition we provide instructions on how to configure MongoDB Enterprise and/or MongoDB Atlas to use this LDAP service to manage user authentication and authorization.
Follow these steps to create a suitable/small AWS instance where we can deploy our OpenLDAP service.
Follow these steps to deploy a basic OpenLDAP service (LDAP only).
This LDAP server is configured with two users and two groups for demonstration purposes.
Follow these optional steps if you wish to reconfigure your LDAP server to support LDAPS. These steps are required if you plan to use your LDAP server with MongoDB Atlas (option 2 below).
Follow these steps to install and configure a MongoDB Enterprise server to use our OpenLDAP server as an LDAP endpoint.
Follow these steps to configure MongoDB Atlas to use our OpenLDAP server as an LDAPS endpoint.
- OpenLDAP setup (with some minor changes, e.g. changing
HDB
toMDB
for theolcDatabase
) - TLS setup (see the 'TLS' section)