src/Classes/AdldapExchange.php
public function find($name, $fields = [])
    {
        $namingContext = $this->getConfigurationNamingContext();

        if ($namingContext) {
            return $this->adldap->search()
                ->setDn($namingContext)
                ->select($fields)
                ->where('objectCategory', '=', $this->serverObjectCategory)
                ->where('anr', '=', $name)
                ->first();
        }

        return false;
    }
public function find($name, $fields = [])
    {
        $namingContext = $this->getConfigurationNamingContext();

        if ($namingContext) {
            return $this->adldap->search()
                ->setDn($namingContext)
                ->select($fields)
                ->where('objectCategory', '=', $this->serverObjectCategory)
                ->where('anr', '=', $name)
                ->first();
        }

        return false;
    }
public function find ( $ name , $ fields = [ ] ) { $ namingContext = $ this -> getConfigurationNamingContext ( ) ; if ( $ namingContext ) { return $ this -> adldap -> search ( ) -> setDn ( $ namingContext ) -> select ( $ fields ) -> where ( 'objectCategory' , '=' , $ this -> serverObjectCategory ) -> where ( 'anr' , '=' , $ name ) -> first ( ) ; } return false ; }
Finds an exchange server.

@param string $name
@param array  $fields

@return array|bool
Finds an exchange server .