Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-6449

Inclusion of more Examples to Configure LDAP with REST API

    XMLWordPrintable

Details

    Description

      We currently have only an example to configure LDAP using the REST API via the `template` option for *`*Enable LDAP user authentication` switch which has two options for mapping usernames which are:

      1. Using a Template
      2. Using a LDAP query

      It will be good to have example for enabling LDAP using a LDAP query which would be as follows.

      curl -v -X POST -u Administrator:password \
      http://10.143.192.101:8091/settings/ldap \
      -d hosts=172.23.124.25 \
      -d port=389 \
      -d encryption=StartTLSExtension \
      -d serverCertValidation=true \
      --data-urlencode cacert@/path/to/cert \
      -d bindDN='cn=admin,dc=example,dc=com' \
      -d bindPass=password \
      -d authenticationEnabled=true \
      --data-urlencode userDNMapping='{"query":"DC=ads,DC=aexp,DC=com??sub? \(sAMAccountName=%u)"}' \
      -d authorizationEnabled=true \
      --data-urlencode groupsQuery='ou=groups,dc=example,dc=com??one?(member=%D)'
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            amarantha.kulkarni Amarantha Kulkarni (Inactive)
            avleen.khanuja Avleen Singh Khanuja (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty