Details
-
Improvement
-
Resolution: Won't Fix
-
Major
-
None
-
None
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:
- Using a Template
- 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)' |