Adldap\Search\Factory::getRootDse PHP Méthode

getRootDse() public méthode

Returns the root DSE record.
public getRootDse ( ) : RootDse | null
Résultat Adldap\Models\RootDse | null
    public function getRootDse()
    {
        $root = $this->query->newInstance()->setDn(null)->read(true)->whereHas($this->schema->objectClass())->first();
        if ($root instanceof Model) {
            return (new RootDse([], $this->query))->setRawAttributes($root->getAttributes());
        }
    }