[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: searching on a DN
> Is it possible to search the directory for an entry with a
> specific DN? For
> instance, the query:
>
> ./ldapsearch '(dn=cn=Intranet Users,ou=Groups,o=Harris/NSS)' cn
ldapsearch -s base -b "cn=Intranet Users,ou=Groups,o=Harris/NSS" \
'objectclass=*' cn
This specifies a search with the BASE scope, with a base of the DN
you want, a filter that should match any entry (every entry must
have an objectclass attribute), returning only the cn attribute.
Bernard.
---
Bernard Gardner
UUNET Asia Pacific Operations
Email: Bernard.Gardner@au.uu.net
Phone: +61 2 94332124
Mobile: +61 4 12207040
Fax: +61 2 94375888
Mail: 39 Herbert St., St Leonards, NSW, Australia, 2065