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

Re: ldapsearch



Dieter Kluenter writes:
>"Ron Wahler" <ron@rovingplanet.com> writes:
> 
>> Can you default the ldapsearch to start at the basedn  without knowing
>> What the basedn is?
> 
> Yes.
> put a BASE directive in a  ~/.ldaprc or ~/ldaprc

Or if he is wondering how to discover the top base DN a particular
server will let him search from if he does not know that:
Read the namingContexts attribute in the server's root DSE.  E.g.

ldapsearch -LLL -x -h ldaphost -s base -b "" "(objectClass=*)" namingContexts

-- 
Hallvard