LdapTools\Connection\RootDse::doLdapQuery PHP Method

doLdapQuery() protected method

Do the LDAP query to get the LDAP object.
protected doLdapQuery ( boolean $anonymous ) : LdapObject
$anonymous boolean
return LdapTools\Object\LdapObject
    protected function doLdapQuery($anonymous)
    {
        if ($anonymous) {
            $this->connection->connect('', '', true);
        }
        $schema = $this->schemaFactory->get(self::SCHEMA_ROOTDSE_NAME, $this->connection->getConfig()->getLdapType());
        return (new LdapQueryBuilder($this->connection))->from($schema)->select('*')->getLdapQuery()->getSingleResult();
    }