thrownewStatusException("BackendSearchLDAP(): Could not bind anonymously to server! Search aborted.",SYNC_SEARCHSTATUS_STORE_CONNECTIONFAILED,null,LOGLEVEL_ERROR);
thrownewStatusException(sprintf("BackendSearchLDAP(): Could not bind to server with user '%s' and specified password! Search aborted.",LDAP_BIND_USER),SYNC_SEARCHSTATUS_STORE_ACCESSDENIED,null,LOGLEVEL_ERROR);
}
}
else{
// it would be possible to use the users login and password to authenticate on the LDAP server
// the main $backend has to keep these values so they could be used here
$this->connection=false;
thrownewStatusException("BackendSearchLDAP(): neither anonymous nor default bind enabled. Other options not implemented.",SYNC_SEARCHSTATUS_STORE_CONNECTIONFAILED,null,LOGLEVEL_ERROR);
}
}
/**
* Indicates if a search type is supported by this SearchProvider
* Currently only the type ISearchProvider::SEARCH_GAL (Global Address List) is implemented
*
* @param string $searchtype
*
* @access public
* @return boolean
*/
publicfunctionSupportsType($searchtype){
return($searchtype==ISearchProvider::SEARCH_GAL);
}
/**
* Queries the LDAP backend.
*
* @param string $searchquery string to be searched for