Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
2.7.0
Description
LDAP sync fails with 'LDAP is not configured' error after configuring LDAP.
Steps to Reproduce
- ambari-server setup-ldap
- ambari-server sync-ldap --all
Example
[root@c6404 ~]# ambari-server sync-ldap --all Using python /usr/bin/python Syncing with LDAP... ERROR: Exiting with exit code 1. REASON: LDAP is not configured. Run 'ambari-server setup-ldap' first.
Cause
The ambari-server script is looking for the value of ambari.ldap.authentication.enabled (from the the ambari.properties file. The value is expected to be "true". Since ambari.ldap.authentication.enabled is not being set in the ambari.properties file, the check is failing and thus, the unexpected error.
See ambari-server/src/main/python/ambari_server/setupSecurity.py:298.
Attachments
Issue Links
- relates to
-
AMBARI-22889 LDAP configuration is not reloaded in Guice
- Resolved
- links to