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

  • SEARCH
  • Home
  • 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 7645843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:03:02+00:00 2026-05-31T10:03:02+00:00

Context We’re adding group membership filtering when importing members from an LDAP server into

  • 0

Context

We’re adding group membership filtering when importing members from an LDAP server into our application.

(Previously we imported all members from a given ldap “base DN”; now administrators can restrict to certain groups, i.e. members “Sales” and “HR” in the base DN).

Our application supports:

  • SunONE

  • Active Directory

Also, we plan to support static groups only, not dynamic groups.

How We Would Have Done It

In the past, we would use two lookups to replicate members into our database for this new functionality.

  1. lookup all members in the baseDN
  2. lookup all groups (with members) where group name is in the list (e.g. “Sales” or “HR”). Programmatically track via a Map “which users belong to which groups”, i.e. using the “group member” attribute (“uniqueMember” in SunONE,”member” in ActiveDirectory)
  3. Intersect results of #1 and #2 to get ‘members to import’

Can MemberOf/IsMemberOf Reduce queries and logic?

In briefish internet research, I found that SunONE and ActiveDirectory have an attribute (isMemberOf/memberOf) which identifies ‘groups that this user belongs to’

In theory, we could simplify the above logic to one LDAP query:

  1. Look up all members in the baseDN who is a member of any of the groups

Can MemberOf/IsMemberOf Reduce queries and logic?

Know issues:
– memberOf/isMemberOf only supports static groups
– it does not support nested groups

Question

  • Will this approach using memberOf/IsMemberOf work?
  • Any caveats?
  • What about OpenLDAP or other servers? do they all support such an attribute. (I see that OpenLDAP has memberOf “overlay”, but an administrator must explicitly enable it)

Reference

SunOne:
http://docs.oracle.com/cd/E19575-01/820-2763/bcajq/index.html

Active Directory:
http://msdn.microsoft.com/en-us/library/ms677943.aspx

Related SO questions:
How to write LDAP query to test if user is member of a group?

memberOf vs. groupMembership in LDAP (Liferay)

  • 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-05-31T10:03:04+00:00Added an answer on May 31, 2026 at 10:03 am
    Will this approach using memberOf/IsMemberOf work?
    

    It will work subject to the caveats.

    Any caveats?
    

    If it works the way the OpenLDAP implementation works, the memberOf attribute only works for entries made after it is enabled. It doesn’t ‘catch up’.

    What about OpenLDAP or other servers? do they all support such an attribute. (I see that OpenLDAP has memberOf "overlay", but an
    

    administrator must explicitly enable it)

    You can interrogate the root DN of any LDAP server to find out whether it supports the feature. You are correct about OpenLDAP’s support of this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Context: The structure of the code is that a WCF service (server-size) talks to
Context I use FINDSTR /C:portid= scanports.xml to extract theses lines from a file: <port
Context: .Net 3.5, C# I'd like to have caching mechanism in my Console application.
CONTEXT I have a list of items (or arbitrary length). I'd like to group
Context: I am trying to upgrade a Grails project from 1.0.3 to 1.3.7 and
Context: The Cloud We have a java-based web application that we normally host on
Context: I'm working with a relatively simple winforms application, written in VB.NET on the
Context: I downloaded a file (Audirvana 0.7.1.zip) from code.google to my Macbook Pro (Mac
Context is C#,.Net framework. Is it the application that runs without any need to
Context: I'm in charge of running a service written in .NET. Proprietary application. It

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.