protected function setDefaultParameters()
{
if (!$this->connection) {
return;
}
$this->parameters['_domainname_'] = $this->connection->getConfig()->getDomainName();
$rootDse = $this->connection->getRootDse();
// Would this ever not be true? I'm unable to find any RFCs specifically regarding Root DSE structure.
if ($rootDse->has('defaultNamingContext')) {
$this->parameters['_defaultnamingcontext_'] = $rootDse->get('defaultNamingContext');
}
if ($rootDse->has('configurationNamingContext')) {
$this->parameters['_configurationnamingcontext_'] = $rootDse->get('configurationNamingContext');
}
}