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

Ambari-server setup-ldap throws an error when the OU has spaces

    XMLWordPrintableJSON

    Details

      Description

      Ambari-server setup-ldap throws an error when the OU has spaces

      ambari-server setup-ldap \
       --ldap-url=ldap.example.com:636 \
       --ldap-secondary-url=ldap.example.com:636 \
       --ldap-ssl=true \
       --ldap-user-class=person \
       --ldap-user-attr=sAMAccountName \
       --ldap-group-class=group \
       --ldap-group-attr=cn \
       --ldap-member-attr=member \
       --ldap-dn=distinguishName \
       --ldap-base-dn="OU=Group Users,DC=example,DC=com" \
       --ldap-referral=follow \
       --ldap-bind-anonym=false \
       --ldap-manager-dn=bind@example.com \
       --ldap-manager-password=**** \
       --ldap-sync-username-collisions-behavior=convert \
       --ldap-save-settings
      

      error message:

      Using python  /usr/bin/python
      Usage: ambari-server.py action [options]
      
      Options:
        -h, --help            show this help message and exit
      ...
        --truststore-reconfigure
                              Force to reconfigure TrustStore if exits
      None
      Usage: ambari-server.py action [options]
      
      ambari-server.py: error: Invalid number of arguments. Entered: 2, required: 1
      

        Attachments

          Activity

            People

            • Assignee:
              amagyar Attila Magyar
              Reporter:
              amagyar Attila Magyar
            • 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 - 1h 50m
                1h 50m