[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Searching for Group memberships of users

I am not using POSIX groups, only the groupOfNames object class for user
groups.  The situation here is that the user name is available; it is a
question of finding out the group membership of that user.

Thanks in advance for the help

Michael Fuller

----- Original Message -----
From: "Andreas Hasenack" <andreas@conectiva.com.br>
To: "Michael Fuller / Railnet" <fullerms@sr.railnet.gov.in>
Cc: <openldap-software@OpenLDAP.org>
Sent: Thursday, September 12, 2002 3:17 AM
Subject: Re: Searching for Group memberships of users

> Em Thu, Sep 05, 2002 at 01:59:52PM +0530, Michael Fuller / Railnet
> > On going through the LDAP directory, I find that the user does not have
> > group attribute, rather groups have a member attribute. If  I filter the
> > search on objectclass=groupofnames, how to extract the user name from
> > member attribute and match it?
> If you are using posixGroup and memberuid:
> ldapsearch memberuid=theuseryouwant cn
> cn will be the (supplementary) groups