Sandor Molnar created AMBARI-22885:
--------------------------------------

             Summary: LDAP sync fails with 'LDAP is not configured' error after 
configuring LDAP
                 Key: AMBARI-22885
                 URL: https://issues.apache.org/jira/browse/AMBARI-22885
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.7.0
            Reporter: Sandor Molnar
            Assignee: Sandor Molnar
             Fix For: 2.7.0


LDAP sync fails with 'LDAP is not configured' error after configuring LDAP.

*Steps to Reproduce*
 # ambari-server setup-ldap
 # ambari-server sync-ldap --all

{noformat:title=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.
{noformat}
*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}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to