src/LdapTools/Connection/RootDse.php
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();
    }
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();
    }
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 ( ) ; }
Do the LDAP query to get the LDAP object.

@param bool $anonymous
@return \LdapTools\Object\LdapObject
Do the LDAP query to get the LDAP object .