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

Re: ldapsearch question

--On Monday, October 24, 2005 12:40 PM -0700 Quanah Gibson-Mount <quanah@stanford.edu> wrote:

--On Monday, October 24, 2005 9:20 PM +0200 Mark Coetser
<mark@thummb.com> wrote:

Hi Ppl

Is there a way to use ldapsearch to show all attributes related to a
specific objectClass for a specific user, so something along the lines of

ldapsearch -x -LLL -b "dc=domain,dc=co,dc=za" "(uid=joesoap)"

but to show only all attr related to inetOrgPerson objectclass, if that
makes any sense.

Yes, use an ANDed filter with the objectClass.


Eh, actually, not correct. Yes, you can do it, you just request the objectClass as the search result:

ldapsearch -x -LLL -b "dc=domain,dc=co,dc=za" "(uid=joesoap)" inetorgperson

is what I meant. :P


Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html