Administration Guide › Connect to LDAP Clients › LDAP Root DSE › Display the Naming Context
The following command lists the prefix of the DSA:
ldapsearch -h hostname -p portnumber -s base -b "" objectclass="*" namingContexts