- Create an LDAP service in Cerb
- Enable single sign-on with LDAP
- Log in with LDAP
Enterprises commonly store and share contact information throughout their organization using an open industry standard called Lightweight Directory Access Protocol (LDAP)1. This can serve as a corporate email and telephone directory; but more importantly, it can also provide a centralized authentication mechanism for various applications and services.
Cerb can use LDAP to authenticate worker logins. This guide will walk through the process of configuring this integration.
If you’re self-hosting Cerb, make sure the
ldap PHP extension is enabled in your environment.
If you’re on Cerb Cloud, we’ve already done this for you.
Create an LDAP service in Cerb
The LDAP integration only needs a connected service.
Navigate to Search » Connected Services.
Click the (+) icon above the worklist to add a new service.
- Enter the following service details:
- Type: LDAP
- Enter your LDAP server details:
- Host: (your LDAP server host; e.g. ldap.example.com)
- Port: (your LDAP server port; e.g. 389)
- Bind DN: (the read-only distinguished name to authenticate as)
- Bind Password: (the password to use for authentication)
- Search context: (the distinguished name for searching employee accounts)
- Email field: (the email field on employee accounts)
- First name field: (the given name field on employee accounts)
- Last name field: (the surname field on employee accounts)
- Click the Save Changes button.
Enable single sign-on with LDAP
Navigate to Setup » Configure » Authentication.
Check the box next to your new LDAP service:
Click the Save Changes button.
Log in with LDAP
When LDAP is enabled as a single sign-on identity provider, a button will appear at the top of the login page.
Clicking this button will prompt for the worker’s email address and password from the LDAP directory, rather than from their Cerb account.
If you want workers to only authenticate using SSO, you can disappear their Cerb password by editing their record.
When a worker authenticates using LDAP, one of the email addresses on their Cerb account must match the email address from their LDAP record.
If a worker has two-factor authentication enabled, they’ll be prompted for their security code after authenticating with their password.
You can use multiple LDAP services to authenticate workers from different corporate directories.
Wikipedia: Lightweight Directory Access Protocol (LDAP) - https://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol ↩