I\'m trying to view all root names on a server that are available for searching thru/modifying. I\'ve tried looking online-but I\'m still unable to find the base levels. ldapse
If the question is "How to get valid top-level base dn(s) ?", you have multiple options :
'host.example.com'
would give 'dc=example,dc=com'
), but it is not guaranteed it results in a valid base dn.ldapsearch -H ldap://host.example.com -x -s base -b '' +
namingContexts
or defaultNamingContext
attribute(s), any one of them can be used as a search base dn. objectClass: dcObject
(and optionnally o=something
) : any corresponding entry can be used as a search base object by using its dn as the base dn.