Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8371

Re: LDAP: How get all users belongs to a group.

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From Michael Ströder <michael@stroeder.com>
Newsgroups comp.lang.python
Subject Re: LDAP: How get all users belongs to a group.
Date Fri, 24 Jun 2011 13:02:34 +0200
Organization A noiseless patient Spider
Lines 37
Message-ID <iu1qsa$eea$3@dont-email.me> (permalink)
References <542151da-ebfb-4cfb-b83d-14f2ba641bf4@x38g2000pri.googlegroups.com> <iu1ki7$9lt$2@dont-email.me> <34110eed-96bc-499f-9a4e-068f2720fc8b@h12g2000pro.googlegroups.com> <7eae157c-fb4e-4fe9-a9b2-0b989452d8ae@l2g2000prg.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
Injection-Date Fri, 24 Jun 2011 11:02:34 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="qfDLEITs000p8x+jLpGEmw"; logging-data="14794"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RwNOogNl0UUc8ZIJAC2VnoxwqmXe1JnY="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20110608 Firefox/4.0.1 SeaMonkey/2.1
In-Reply-To <7eae157c-fb4e-4fe9-a9b2-0b989452d8ae@l2g2000prg.googlegroups.com>
Cancel-Lock sha1:Q1A5iHabWSrlLZLJRW3e0MbcOlM=
X-Enigmail-Version 1.2a1
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8371

Show key headers only | View raw


sajuptpm wrote:
> ------------------------------------------- User
> 
> cn=AJP2203,ou=Internal PCA,o=CUST has group memberships
> to the following Groups:
> groupMembership: cn=My-Group-1,ou=Groups,o=CUST
> groupMembership: cn=My-Group-2,u=Groups,o=CUST
> groupMembership: cn=My-Group-3,ou=Groups,o=CUST
> 
> ------------------------------------------- Group
> 
> dn: cn=My-Group-1, ou=Groups, o=CUST
> equivalentToMe: cn=TDS7034,ou=Internal PCA,o=CUST
> objectClass: groupOfNames  <------------
> objectClass: top
> objectClass: swarePointers
> ACL: 2#entry#[Root]#member
> cn: My-Group-1
> member: cn=AJP2203,ou=Internal PCA,o=CUST
> member: cn=AZE9632,ou=Internal PCA,o=CUST
> member: cn=BTC4979,ou=Internal PCA,o=CUST
> 
> -----------------
> 
> * We will get groups of a member from member record, using key
> 'groupMembership'.
> * But i want to get members belogs to a particular group Eg:'My-
> Group-1'

If this is the server's data the LDAP server seems to be Novell eDirectory not
OpenLDAP.

I'd try member search with this filter:

  (groupMembership=cn=My-Group-1,ou=Groups,o=CUST)

Ciao, Michael.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

LDAP: How get all users belongs to a group. sajuptpm <sajuptpm@gmail.com> - 2011-06-23 06:14 -0700
  Re: LDAP: How get all users belongs to a group. Ken Watford <kwatford+python@gmail.com> - 2011-06-23 09:59 -0400
  Re: LDAP: How get all users belongs to a group. Michael Ströder <michael@stroeder.com> - 2011-06-24 11:14 +0200
    Re: LDAP: How get all users belongs to a group. sajuptpm <sajuptpm@gmail.com> - 2011-06-24 02:58 -0700
      Re: LDAP: How get all users belongs to a group. sajuptpm <sajuptpm@gmail.com> - 2011-06-24 03:06 -0700
      Re: LDAP: How get all users belongs to a group. sajuptpm <sajuptpm@gmail.com> - 2011-06-24 03:16 -0700
        Re: LDAP: How get all users belongs to a group. Michael Ströder <michael@stroeder.com> - 2011-06-24 13:02 +0200
      Re: LDAP: How get all users belongs to a group. John Gordon <gordon@panix.com> - 2011-06-24 14:57 +0000
        Re: LDAP: How get all users belongs to a group. sajuptpm <sajuptpm@gmail.com> - 2011-06-25 00:08 -0700
          Re: LDAP: How get all users belongs to a group. Michael Ströder <michael@stroeder.com> - 2011-06-25 12:20 +0200

csiph-web