parent
5dea14f04b
commit
3c47ef6826
|
@ -9,7 +9,7 @@ use Icinga\Exception\AuthenticationException;
|
|||
use Icinga\Exception\ProgrammingError;
|
||||
use Icinga\Repository\LdapRepository;
|
||||
use Icinga\Repository\RepositoryQuery;
|
||||
use Icinga\Protocol\Ldap\Exception as LdapException;
|
||||
use Icinga\Protocol\Ldap\LdapException;
|
||||
use Icinga\Protocol\Ldap\Expression;
|
||||
use Icinga\User;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ use Icinga\Data\ConfigObject;
|
|||
use Icinga\Data\Selectable;
|
||||
use Icinga\Data\Sortable;
|
||||
use Icinga\Exception\ProgrammingError;
|
||||
use Icinga\Protocol\Ldap\Exception as LdapException;
|
||||
use Icinga\Protocol\Ldap\LdapException;
|
||||
|
||||
/**
|
||||
* Encapsulate LDAP connections and query creation
|
||||
|
|
|
@ -6,9 +6,9 @@ namespace Icinga\Protocol\Ldap;
|
|||
use Icinga\Exception\IcingaException;
|
||||
|
||||
/**
|
||||
* Class Exception
|
||||
* Class LdapException
|
||||
* @package Icinga\Protocol\Ldap
|
||||
*/
|
||||
class Exception extends IcingaException
|
||||
class LdapException extends IcingaException
|
||||
{
|
||||
}
|
|
@ -186,7 +186,7 @@ class LdapQuery extends SimpleQuery
|
|||
*
|
||||
* @return string|false The distinguished name or false in case it's not possible to fetch a result
|
||||
*
|
||||
* @throws Exception In case the query returns multiple results
|
||||
* @throws LdapException In case the query returns multiple results
|
||||
* (i.e. it's not possible to fetch a unique DN)
|
||||
*/
|
||||
public function fetchDn()
|
||||
|
@ -199,12 +199,12 @@ class LdapQuery extends SimpleQuery
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @throws Exception In case the objectClass filter does not exist
|
||||
* @throws LdapException In case the objectClass filter does not exist
|
||||
*/
|
||||
protected function renderFilter()
|
||||
{
|
||||
if (! isset($this->filters['objectClass'])) {
|
||||
throw new Exception('Object class is mandatory');
|
||||
throw new LdapException('Object class is mandatory');
|
||||
}
|
||||
|
||||
$parts = array();
|
||||
|
|
Loading…
Reference in New Issue