-
Sep 21st, 2011, 02:10 AM
#1
Find all sub groups of all depths of a given group in LDAP using LdapTemplate
Hi I would like to have a method to find all sub groups of all depths of a given group in LDAP using LdapTemplate. Can anybody help with this?
Regards,
Gannoju
-
Sep 21st, 2011, 01:40 PM
#2
For generic LDAP, the only way to do this is by walking the LDAP tree yourself. Spring does not have any built-in ways to get nested groups. If the LDAP server you are hitting is actually an Active Directory server, there is a built-in way to deal with "chains" of things, like nested groups. The filter string to get all groups a user is in, including those reachable via nesting of those groups is: (&(objectClass=group)(member:1.2.840.113556.1.4.19 41:={0})) where the {0} value is the DN of the particular user. This article has some more details: http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
-
Nov 6th, 2011, 08:11 PM
#3
The filter string to get all groups a user is in, including those reachable via nesting of those groups is: (&(objectClass=group)(member:1.2.840.113556.1.4. 19 41:={0})) where the {0} value is the DN of the particular user.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules