Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8960643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:42:18+00:00 2026-06-15T15:42:18+00:00

I need to implement nested group membership for generic AD services. Previously, i was

  • 0

I need to implement nested group membership for generic AD services.
Previously, i was using a specific search-filter (“member:1.2.840.113556.1.4.1941:=”) through which using a single search request, i was able to get hold of all group membership through which that user was part of. However, it looks like that search-filter seems to work only for MS AD servers and not for generic AD servers.

So, is anybody aware of any specific search filter which we can send in a search request (applicable to All AD servers), through which i can derive nested group membership via a single search query.

Thanks in advance for your help on this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:42:20+00:00Added an answer on June 15, 2026 at 3:42 pm

    “member:1.2.840.113556.1.4.1941” is LDAP_MATCHING_RULE_IN_CHAIN and might very well not be implemented by other LDAP vendors. LDAP Wiki

    Edit:

    You could do something like this if you want to reurse the groups:

    Use the filter:

        (&(objectCategory=organizationalPerson)(objectClass=User)(sAMAccountName=YOURUSER)
    
        get "distinguishedName"  (this is the user's distinguishedName)
        get "memberOf"  (this is a collection of distinguishedNames of the groups the user is a member of (minus the primary group in MS Active Directory, which should be "Domain Users"))
    
    
    
        Foreach memberOf in the collection: (This is the first level, so there is no need to check if he is there, because he is.)
    
        (&(objectCategory=group)(distinguishedName=THISMEMBEROF))
    
        get "member" (this is a collection of distinguishedNames of group members)
    
    
    
        Foreach memberOf in the collection: 
    
        This is the second level (the groups within the groups), so first check if the users distinguishedName is present.
        (&(objectCategory=group)(distinguishedName=THISMEMBEROF))
    
        get "member" (this is a collection of distinguishedNames of group members)
    
    Foreach memberOf in the collection: 
    
    This is the third level (the groups within the groups), so first check if the users distinguishedName is present.
    (&(objectCategory=group)(distinguishedName=THISMEMBEROF))
    
    get "member" (this is a collection of distinguishedNames of group members)
    
    
    
    etc.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to implement nested transactions in .NET using ADO.NET . The situation is
I need to implement an application that is simultaneously communicating with multiple clients using
I need to implement a nested grid functionality in extjs 4. I searched online
I'm trying to implement Knockout.js-External-Template-Engine using a working demo of nested templates Currently I
While implementing a design using nested generic collections, I stumbled across those limitations apparently
I need to implement a red-black search tree in java. I thought about creating
I need to implement portable code, but I do not know how to deal
I need to implement an efficient excel-like app. I'm looking for a data structure
I need to implement the following: There is a table A which is supposed
i need to implement the email signature with image.As of now we only support

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.