Product: Confluence
Environment
| Operating System | |
|---|---|
| Affect Version/s | 2.5.7 |
| JVM | |
| Database | Oracle 10.x |
| Application Server | Tomcat 5.5.x |
Error Message
Symptom
userAccessor.getMemberNames(group);
This function does not return a list of usernames as expected (returns list of full name or first name etc).
Diagnostics/Test
Root Cause
Confluence will go look under your group node in ldap. Usually what is under here is a list of members which are identified by CN=SomeUserName }} and Confluence will strip the {{'CN=' and return you the rest. That is, confluence will return you a list of usernames that belong to a group.
However a customer may configure their usernames to be associated to some other attribute rather than the CN attribute. They may have full name, or first name or some other field assigned to CN instead. Under each of their groups in LDAP, they have a list of members who are identified by this CN attribute (which is not a username). Thus when calling API functions such as getMemberNames(group) they are not returned with a list of usernames as expected.
Solution
There currently is no solution as this is dependant on your LDAP configuration. If the members under a group are identified by something other than CN=username, then the username will not be returned.
