Details
Description
Request
Fix the ldap indicator in the security->Users UI.
Background
I was setting up an ldap server to check the 6.5 mad-hatter (RC-4 build 4959) ldap integration.
Problem
Everything was working perfectly and i even enabled LDAP from the UI itself
and verified it in the Couchbase-cli
./couchbase-cli setting-ldap -c localhost -u Administrator -p xxx --get | python -m json.tool
|
{
|
"authenticationEnabled": true, |
"authorizationEnabled": true, |
"bindDN": "uid=root,cn=users,dc=somedomain,dc=co,dc=il", |
"bindPass": "**********", |
"cacheValueLifetime": 300000, |
"encryption": "None", |
"failOnMaxDepth": false, |
"groupsQuery": "%D?memberOf?base", |
"hosts": [ |
"xxx" |
],
|
"maxCacheSize": 10000, |
"maxParallelConnections": 100, |
"nestedGroupsEnabled": false, |
"nestedGroupsMaxDepth": 10, |
"port": 389, |
"requestTimeout": 5000, |
"serverCertValidation": true, |
"userDNMapping": { |
"template": "uid=%u,cn=users,dc=somedomain,dc=co,dc=il" |
}
|
}
|
but even thought it is clearly enabled, it is marked as not
It is also visible from the blog here: https://blog.couchbase.com/managing-ldap-groups-for-external-users-in-6-5/
It also seem like the request the UI is doing is also returning true for ldap authentication
http://xxx:8091/settings/ldap |
{"hosts": ["xxx"],"port": 389,"encryption": "None","serverCertValidation": true,"bindDN": "uid=root,cn=users,dc=somedomain,dc=co,dc=il","authenticationEnabled": true,"userDNMapping": {"template": "uid=%u,cn=users,dc=somedomain,dc=co,dc=il"},"authorizationEnabled": true,"nestedGroupsEnabled": false,"groupsQuery": "%D?memberOf?base","requestTimeout": 5000,"maxParallelConnections": 100,"maxCacheSize": 10000,"cacheValueLifetime": 300000,"nestedGroupsMaxDepth": 10,"bindPass": "**********","failOnMaxDepth": false} |
So this is a clearly UI issue.