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

Re: How to find server root DN?



At 03:13 PM 7/20/00 +0200, Mikael Grehn wrote:
>In LDAPv3 I think this is placed in DSE attributetype "namingContexts"
>(might be wrong here
>thou) but for LDAPv2
>I have no idea. This must be a quite basic question when starting a new
>search  against an
>"unknown" LDAP server.

For the LDAPv3 rootDSE, something like:
  ldapsearch -P 3 -h ldap.openldap.org -b "" -s base \
    '(objectclass=*)' namingContexts

For an OpenLDAP/Umich cn=config, something like:
  ldapsearch -P 2 -h ldap.example.com -b "cn=config" -s base \
    '(objectclass=*)' database