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

Re: ldapsearch question



On Fri, 2002-11-15 at 23:18, De Leeuw Guy wrote:

> Hello,
 
> How ca I search a dn ?
> I try : ldapsearch -b "o=Eurofer, c=be" -s sub "dn=cn=LastName FirstName,
> o=Eurofer, c=be"

Are you trying to search a part of a dn?

The idea is you have a starting point, called the base, and you
construct a filter to find what you need:

ldapsearch -x -b 'ou=people,dc=sspl,dc=net,dc=au' '(objectclass=*)'

or 

ldapsearch -x -b 'ou=people,dc=sspl,dc=net,dc=au'
'(&(objectclass=person)(sn=smit*))'

HTH

Pete...