OpenDJ LDAP integration reference
This topic provides reference information specific to OpenDJ Lightweight Directory Access Protocol (LDAP) integrations. When you're installing the Okta LDAP Agent, you need this information to integrate your OpenDJ directory with Okta. See Install the Okta LDAP Agent.
Known issues
-
Users who are required to change their passwords after self-service password reset must provide their new password twice to access the Okta End-User Dashboard.
-
When the provisioning settings indicate Do nothing when users are deactivated, users remain active in Okta. When a single source provides user profile attributes, deactivated users are disconnected from the source and Okta becomes the source for user profile attributes.
Integration configuration
During the initial agent install and configuration documented in Install the Okta LDAP Agent, these are the attributes for OpenDJ integrations:
- Unique Identifier Attribute: entryuuid
- DN Attribute: entrydn
- User Object Class: inetorgperson
- User Object Filter: (objectclass=inetorgperson)
- *Account Disabled Attribute: ds-pwp-account-disabled
- *Account Disabled Value: TRUE
- *Account Enabled Value: FALSE
- Password Attribute: userpassword
- Group Object Class: groupofuniquenames
- Group Object Filter: (objectclass=groupofuniquenames)
- Member Attribute: uniquemember
- Password Expiration Attribute: ds-pwp-password-expiration-time
Schema read
There are no special considerations for OpenDJ integrations.
To add attributes from AUX classes, add the auxiliary class as an Auxiliary Object Class to the directory provisioning configuration.
Password change
-
Users trigger a password change by selecting Settings on the Okta end user dashboard.
-
To allow users to change or reset their password, click LDAP tab, and then select .
, select the -
You can configure settings such as password length and expiration on your LDAP instance.
-
Okta parses password update operations that fail, and the error message appears in the Delegated Authentication page.
Password reset
-
Password reset is triggered by an administrator or the User Forgot Password flow.
-
Password reset can fail if the new password doesn't meet the password policy criteria.
-
Users can't update expired passwords. Admins must reset expired passwords.
Password validation
Use the pwdPolicy object class to implement OpenDJ-specific password policies.
If you don't specify OpenDJ password validators for your password policy, there are no restrictions on password length or permissible characters.
Import
Users or groups created in OpenDJ aren't included in an incremental import until the first user profile change is detected.
JIT provisioning
There are no special considerations for OpenDJ Just-In-Time (JIT) provisioning. For user identification (UID), use an email format to match the default setting for an Okta username. Don't use an external identity provider (IdP) to trigger sign-in.
To make sure that JIT provisioning is successful the first time:
- The value of the configured naming attribute (such as UID) must not exist in Okta.
- The value of the configured naming attribute (such as UID) must be unique in all JIT-enabled directories.
- The required attributes must be present. The Okta defaults are email, givenName, sn, and uid.
- The password must be correct.
- The Account Disabled Attribute must be set to false on the LDAP server.
When JIT provisioning completes successfully, all user attributes specified on the LDAP settings page and in the Profile Editor are imported. To select other mandatory attributes, use the Profile Editor.
Membership import
User profiles with OpenDJ settings are added to groups with the object class groupofuniquenames
and assigned the uniquemember
group attribute.
Provisioning
If you don't specify OpenDJ password validators for your password policy, there are no restrictions on password length or permissible characters.
To create and assign passwords when creating user profiles:
- Contact Okta customer support to enable LDAP push password updates.
- Complete these steps to disable delegated authentication:
- In the Admin Console, go to .
- Click Edit in the Delegated Authentication pane.
- Clear the Enable delegated authentication to LDAP checkbox.
- Click Save.
- Accept the default setting to reset all LDAP user passwords and click Disable LDAP Authentication.
- In the Admin Console, go to .
- Click Edit, select Enable next to Sync Password, and click Save.
When Sync Password is enabled, the LDAP agent sends the action PASSWORD_UPDATE when the user signs in for the first time.
To assign existing Okta users to LDAP:
- In the Admin Console, go to .
- Click Edit, select Enable next to Create Users, and click Save.
- Click .
- Select the Okta group to which you want to assign users.
- Click Manage Directories.
- Select an LDAP instance in the left pane and click Next.
- Enter the full distinguished name (DN) for the new user LDAP container in the Provisioning Destination DN field.
- Click Confirm Changes.
Troubleshooting
If LDAP directory authentication fails, the agent logs display messages similar to the following to assist with diagnosis and resolution:
Agent: Success
scanResults are sent with user+group info POST initiated with result status=SUCCESS, actionType=USER_AUTH_AND_UPDATE, diagnostic message=, error code=, matched dn=, message=SUCCESS, result code=, vendor=OPEN_DJAgent: Delauth failure
POST initiated with result status=FAILURE, actionType=USER_AUTH_AND_UPDATE, actionId=ADSv0hR8zflMGGeUY0g3, diagnostic message=, error code=49, matched dn=cn=LynxyForChange,cn=GroupForUser4Level,cn=GroupForUser3Level, cn=GroupForUser2Level,cn=GroupForUser1Level,ou=LynxySpecificUsers,ou=LynxyUsers, dc=example,dc=com, message=LDAPException(resultCode=49 (invalid credentials), errorMessage='invalid credentials'), result code=invalid credentials, vendor=OPEN_DJAgent: No user
POST initiated with result status=FAILURE, actionType=USER_AUTH_AND_UPDATE, actionId=ADSv0bQoITDYU63b80g3, diagnostic message=, error code=, matched dn=, message=User not found while executing query: (&(objectclass=inetorgperson)(uid=test@test.com)), result code=, vendor=OPEN_DJAgent: Password Expired
POST initiated with result status=FAILURE, actionType=USER_AUTH_AND_UPDATE, actionId=ADSv091Tx5GPJsUxV0g3, diagnostic message=, error code=49, matched dn=cn=LynxyForChange,cn=GroupForUser4Level,cn=GroupForUser3Level, cn=GroupForUser2Level,cn=GroupForUser1Level,ou=LynxySpecificUsers,ou=LynxyUsers, dc=example,dc=com, message=LDAPException(resultCode=49 (invalid credentials), errorMessage='invalid credentials', responseControls={PasswordExpiredControl(isCritical=false)}), result code=PASSWORD_EXPIRED, vendor=OPEN_DJAgent: Locked Out or Disabled
OpenDJ doesn't have a specific error code for an account that was locked. When pwdAccountLockedTime is more than the current time: the response code is the same as when an incorrect password is used (49 (invalid credentials)).
POST initiated with result status=FAILURE, actionType=USER_AUTH_AND_UPDATE, actionId=ADSv0pY84CfDLi2Jc0g3, diagnostic message=, error code=49, matched dn=cn=LynxyForChange,cn=GroupForUser4Level,cn=GroupForUser3Level,cn=GroupForUser2Level, cn=GroupForUser1Level,ou=LynxySpecificUsers,ou=LynxyUsers,dc=example,dc=com, message=LDAPException(resultCode=49 (invalid credentials), errorMessage='invalid credentials'), result code=invalid credentials, vendor=OPEN_DJ