...
In case of enabling LDAP, the script uses a user-provided parameters file with the desired configuration. It verifies the configuration, update updates the configuration database and files and restarts the necessary services.
...
Parameter | Description |
---|---|
builtinRoleMethod | Should be "user_attribute" (for scenario A) or "group_attribute" (for scenario B). |
testUserName | The username of a user for testing e.g. adminford |
testUserPassword | The password of a user for testing |
connectionUrl | LDAP server URL. Use ldap:// prefix for non-SSL connection and ldaps:// prefix for SSL connection. e.g. ldap://192.168.110.15:389 |
referrals | Follow or ignore LDAP referrals (follow/ignore) |
connectionName | Query user distinguished name (DN) e.g. cn=LDAP Query User,ou=people,dc=example,dc=org |
connectionPassword | Query user password Note: This password will be encrypted and stored in the configuration filedatabase and files e.g. pass123 |
userSearchBase | User search base entry e.g. ou=people,dc=example,dc=org |
userSearchSubtree | User search query sub-tree (true/false) e.g. true |
userSearchFilter | User search filter |
groupSearchBase | Group search base entry |
groupSearchSubtree | Group search query sub-tree (true/false) e.g. true |
groupSearchFilter | Group search filter |
groupSearchNested | Nested groups (true/false) e.g. true |
groupRoleAttributeName | Group entry role attribute name |
userRoleAttributeName | For scenario A only |
...
For an invalid LDAP configuration, the command's output should might be:
Code Block | ||||
---|---|---|---|---|
| ||||
28/06/2018 15:28:02,902- INFO Starting LDAP Utilities 28/06/2018 15:28:02,909- INFO Reading user parameters file, path=./LDAP_parameters.properties 28/06/2018 15:28:02,912- INFO This utility is about to connect to the LDAP registry to test the configuration. 28/06/2018 15:28:02,912- INFO Please confirm connecting to the LDAP registry (y,n): y 28/06/2018 15:28:03,638- INFO Connecting to the LDAP sever, connectionUrl=ldap://wrong-server:10389 28/06/2018 15:28:06,663- ERROR The operation failed. See log file for more details. |
Inspect In case of failure, inspect the log file for detailed test failure messages. The log files are file is located in /logs/ui/app_ldap_utilities.log.
Change the LDAP configuration in the parameters file and rerun the script until tests are successful.
...
Code Block | ||||
---|---|---|---|---|
| ||||
cd /app/utils/
/app/scripts/app_ldap_utilities.sh -d |
...