4.1. Query Root DSE

The root DSE provides general information about the LDAP server. DSE stands for DSA-Specific Entry, where DSA is Directory System Agent, which is the element of a X.500 directory service that provides User Agents with access to a portion of the directory. The DN of the root DSE is comprised of zero RDNs and represented by an empty string (the null DN).

Some interesting attributes:

ldapsearch \
    -b '' \
    -s base \
    '*' +

Depending on the server, the results may look something like those given below.

dn:
currentTime: 20190113181342.0Z
subschemaSubentry: CN=Aggregate,CN=Schema,CN=Configuration,DC=example,DC=com
dsServiceName: CN=NTDS Settings,CN=SERVER1,CN=Servers,CN=Sites,CN=Configuration,DC=example,DC=com
namingContexts: CN=Configuration,DC=example,DC=com
namingContexts: CN=Schema,CN=Configuration,DC=example,DC=com
namingContexts: DC=foo,DC=example,DC=com
defaultNamingContext: DC=foo,DC=example,DC=com
schemaNamingContext: CN=Schema,CN=Configuration,DC=example,DC=com
configurationNamingContext: CN=Configuration,DC=example,DC=com
rootDomainNamingContext: DC=example,DC=com
supportedControl: 1.2.840.113556.1.4.319
...
supportedControl: 1.2.840.113556.1.4.2256
supportedLDAPVersion: 3
supportedLDAPVersion: 2
supportedLDAPPolicies: MaxPoolThreads
...
supportedLDAPPolicies: SystemMemoryLimitPercent
highestCommittedUSN: 1322528598
supportedSASLMechanisms: GSSAPI
...
supportedSASLMechanisms: DIGEST-MD5
dnsHostName: SERVER1.foo.example.com
ldapServiceName: example.com:server1$@FOO.EXAMPLE.COM
serverName: CN=SERVER1,CN=Servers,CN=Sites,CN=Configuration,DC=example,DC=com
supportedCapabilities: 1.2.840.113556.1.4.800
...
supportedCapabilities: 1.2.840.113556.1.4.2237
isSynchronized: TRUE
isGlobalCatalogReady: TRUE
domainFunctionality: 6
forestFunctionality: 6
domainControllerFunctionality: 6