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

Re: Searching for Group memberships of users



Em Thu, Sep 05, 2002 at 01:59:52PM +0530, Michael Fuller / Railnet escreveu:
> On going through the LDAP directory, I find that the user does not have a
> group attribute, rather groups have a member attribute. If  I filter the
> search on objectclass=groupofnames, how to extract the user name from the
> member attribute and match it?

If you are using posixGroup and memberuid:
ldapsearch memberuid=theuseryouwant cn

cn will be the (supplementary) groups