}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$rr = $this->ldap->search($cr, $base, $filter, array('dn'));
if(!$this->ldap->isResource($rr)) {
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$base = $this->configuration->ldapBase[0];
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$base = $this->configuration->ldapBase[0];
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$obclasses = array('posixGroup', 'group', '*');
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$obclasses = array('group', 'posixGroup', '*');
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$obclasses = array('inetOrgPerson', 'person', 'organizationalPerson',
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$base = $this->configuration->ldapBase[0];
$rr = $this->ldap->search($cr, $base, $filter, $possibleAttrs);
private function testBaseDN($base) {
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
//base is there, let's validate it. If we search for anything, we should
private function testMemberOf() {
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
if(!is_array($this->configuration->ldapBase)
|| !isset($this->configuration->ldapBase[0])) {
$filter .= '(|';
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$base = $this->configuration->ldapBase[0];
foreach($cns as $cn) {
private function determineFeature($objectclasses, $attr, $dbkey, $confkey, $po = false) {
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$p = 'objectclass=';
foreach($objectclasses as $key => $value) {