Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-22885

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

    XMLWordPrintableJSON

Details

    Description

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

      Steps to Reproduce

      1. ambari-server setup-ldap
      2. 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

          Activity

            People

              smolnar Sandor Molnar
              smolnar Sandor Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h
                  3h