Hi,
I am new to Spring and ACEGI-LDAP. I have to search for all the groups/subgroups a user belong to. I am using the following method
Set userRoles =
ldapTemplate.searchForSingleAttributeValues(
getGroupSearchBase(),
groupSearchFilter,
new String[] { userDn, username },
groupRoleAttribute);
where
Group Search Base = "cn=XYZ, cn=Groups, dc=test, dc=com"
Group Search Filter = "(member={0})"
Group Role Attribute = "cn"
userDN = cn=myUser, cn=Users, dc=test, dc=com
userName = "myUser"
XYZ contains groups - A, B, C, D.
"myUser" is a unique member in B, D.
I need B and D to be returned by the method. Do I need to change the parameters I am passing or I need to use any other method?
Thanks for your help.


Reply With Quote