Regarding your first question about general search base search:
LDAP ( LDAP, ) node, RootDSE. , RootDSE, - namingContexts, , .
, . : LDAP (OpenLDAP, ) , , .
RootDSE , DN "" ( ) , . OpenLDAP:
ldapsearch -H ldap://ldap.mydomain.com -x -s base -b "" +
( OpenLDAP 2.4.8) - :
dn:
structuralObjectClass: OpenLDAProotDSE
configContext: cn=config
namingContexts: dc=example,dc=com
namingContexts: dc=example,dc=net
monitorContext: cn=Monitor
supportedControl: 1.3.6.1.4.1.4203.1.9.1.1 (Contentsync RFC 4530)
[...]
supportedExtension: 1.3.6.1.4.1.4203.1.11.1 (ModifyPassword RFC3088)
[...]
supportedFeatures: 1.3.6.1.1.14 (Modify-Increment RFC4525)
[...]
supportedLDAPVersion: 3
supportedSASLMechanisms: NTLM
[...]
entryDN:
subschemaSubentry: cn=Subschema
( http://www.zytrax.com/books/ldap/ch3/#operational)
uid:
, , , ( user-schema uid, ). , . , ( , ( , RootDSE)).