Root DSE search does not return tree name as a naming context

  • 3618863
  • 21-Dec-2007
  • 26-Apr-2012


A rootDSE search returns a list of all the naming contexts that an LDAP server can successfully process - either by returning a referral or a result set directly. If a server holds a copy of the entire tree, the only naming context returned is an empty string.

Here's an example of the output using ldapsearch.

$ ldapsearch -b "" -s base objectclass=* namingcontexts



This behavior is by design and follows LDAP RFC 2251 which outlines the values returned from a Root DSE search.

An enhancement request has been submitted to return the treename in a namingcontext.