Results 1 to 3 of 3

Thread: Find all sub groups of all depths of a given group in LDAP using LdapTemplate

  1. #1
    Join Date
    Sep 2011
    Posts
    1

    Default 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. #2
    Join Date
    Aug 2011
    Posts
    7

    Default

    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

  3. #3

    Default

    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
  •