Announcement Announcement Module
Collapse
No announcement yet.
Find all sub groups of all depths of a given group in LDAP using LdapTemplate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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

    Comment


    • #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.

      Comment

      Working...
      X