LDAP authentication allows you to LDAP as the primary authentication repository instead of the default OpenIAM repository. LDAP authentication is also channelled through the OpenIAM Authentication service and provides the following benefits in comparison to using LDAP directly:
- Use of a centralized authentication service for the enterprise
- Provides consistency across the authentication process.Regardless of the repository that is used, the same set of policies will be enforced.
Authentication Process
The following process is used when authenticating a user against LDAP:
- User enter login credentials into the login interface
- Authentication service passes the request to the LDAPLoginModule
- Login module looks up the login value
- If the login value is not found then the service returns INVALID_LOGIN
- If the login value is found then we obtain the DN for the user.
- Then we do an authenticate against ldap using the dn and password supplied
- Failure - Return INVALID_PASSWORD. Increment the auth-fail-count counter. Ultimately, we will lock the account
- Success - Look up the DN in the IDM repository to see if this is valid identity for the repository
- Next, check the status of the user - if the user is locked or not active, then we return INVALID_STATUS
Configure the Authentication Repository
If authentication needs to be configured to use a directory other then the OpenIAM repository, then an authentication repository needs to be defined. This is done through the admin console using the steps described below
- Log nto the admin console
- Select Resource from the Access Control menu.
- Select Authentication Repository from the Resource Type list shown below.
- To update an existing configuration, click on the resource name from the search results. Click on New Resource to start a new configuration.
On the screen shown below, we can define the various parameters related to the repository.
Field |
Description |
|---|---|
HOST_LOGIN_ID |
Admin account that will be used to connect to the repository |
COMMUNICATION_PROTOCOL |
SSL or CLEAR. Determines if communication with the repository will be over SSL or if it will be sent in clear text |
PASSWORD |
Password corresponding to the Admin account |
SEARCH_ATTRIBUTE |
LDAP attribute against which authentication will occur |
MANAGED_SYS_ID |
System ID in OpenIAM that corresponds to this repository |
OBJECT_CLASS |
LDAP Object class |
HOST_URL |
URL for the directory. eg. ldap://localhost:1389/ |
BASE_DN |
Part of the LDAP tree to search in. |
Configure the Authentication Policy
Once the repository has been configured, it needs to be applied to the authentication policy. This is done through the following parameters:
Field |
Description |
|---|---|
DEFAULT_LOGIN_MOD |
Select LDAP Login Module |
AUTH_REPOSITORY |
Select the repository that you created above |

