Before users can be imported and authenticated from an LDAP or LDAP-supported authentication system, you must connect to the LDAP server.
Before you begin
Your IBM®
StoredIQ® application stack must be at version 7.6.0.6 or later.
Procedure
-
Using an SSH tool, log in to the application stack as the
siqadmin user.
-
Enter the following command: ldapcfg.
-
Enter these configuration details.
-
To enable LDAP, select Allow External LDAP User.
- Provide the following information:
| Parameter |
Value |
| LDAP URL |
The host name or IP address of your directory server:
|
| LDAP User |
The user account for accessing the directory server, for example, cn=user,dc=example,dc=com |
| LDAP Password |
The LDAP user's password |
| Base DN |
The base domain name, for example, dc=siqdomain,dc=com |
The LDAP Configuration window also contains the following attribute-mapping details.
| Attribute |
Predefined mapping |
| First Name |
givenName |
| Last Name |
sn |
| Email |
mail |
| Username |
cnThis field cannot contain spaces or special characters. Additionally, it must be a part of your DN for users to import successfully.
|
Important: Do not modify these predefined attribute mappings unless your schema is different. If you have questions about the schema or these changes, contact your company's LDAP administrator.
-
Select Test connection to test whether you are connected to the LDAP server.
The LDAP Status information shows whether the connection test passed or failed.
-
Save and exit the configuration.
-
Restart the application stack by using this command: systemctl restart
appstack-uwsgi.service
-
Check the status by using this command: systemctl list-dependencies
appstack.target
Results
The list of LDAP users is now available for import. To avoid that the information in the application stack database becomes stale, the user details are synchronized with the directory server on a daily basis. A recurring background service avoids overloading a synchronization request on the LDAP server. However, you can trigger an immediate synchronization by running the sync_ldap script as siqadmin user.
Note: During synchronization, only active LDAP users' details are updated. If LDAP users are deleted from the LDAP server, those users' details are marked as inactive in the application stack database.