Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 740 Bytes

root-dse.md

File metadata and controls

33 lines (21 loc) · 740 Bytes

The RootDse Model

Getting the Root DSE

To get the Root DSE of your AD server, call the getRootDse() method off a new search:

$rootDse = $provider->search()->getRootDse();

Getting the schema naming context

To get the Root DSE schema naming context, call the getSchemaNamingContext():

$rootDse = $provider->search()->getRootDse();

$context = $rootDse->getSchemaNamingContext();

// Returns 'cn=Schema,cn=Configuration,dc=corp,dc=acme,dc=org'
echo $context;

Getting the root domain naming context:

To get the Root DSE domain naming context, call the getRootDomainNamingContext():

$context = $rootDse->getRootDomainNamingContext();

// Returns 'dc=corp,dc=acme,dc=org'
echo $context;