src/Classes/AbstractAdldapQueryable.php
public function find($name, $fields = [])
    {
        $results = $this->adldap->search()
            ->select($fields)
            ->where('objectClass', '=', $this->objectClass)
            ->where('anr', '=', $name)
            ->first();

        if (count($results) > 0) {
            return $results;
        }

        return false;
    }
public function find($name, $fields = [])
    {
        $results = $this->adldap->search()
            ->select($fields)
            ->where('objectClass', '=', $this->objectClass)
            ->where('anr', '=', $name)
            ->first();

        if (count($results) > 0) {
            return $results;
        }

        return false;
    }
public function find ( $ name , $ fields = [ ] ) { $ results = $ this -> adldap -> search ( ) -> select ( $ fields ) -> where ( 'objectClass' , '=' , $ this -> objectClass ) -> where ( 'anr' , '=' , $ name ) -> first ( ) ; if ( count ( $ results ) > 0 ) { return $ results ; } return false ; }
Finds a single entry using the objects current class
and the specified common name. If fields are specified,
then only those fields are returned in the result array.

@param string $name
@param array  $fields

@return array|bool
Finds a single entry using the objects current class and the specified common name . If fields are specified then only those fields are returned in the result array .