Compare commits

..

No commits in common. "6890d67bba72b5b92f72f9d1ef6193066086439a" and "e684ee670161ec8bfaad39aa0176b85eff93226a" have entirely different histories.

View File

@ -45,8 +45,6 @@ class ldapService
}
public function connect() {
$this->disconnect();
if($this->connection){
return $this->connection;
} else {
@ -84,8 +82,11 @@ class ldapService
}
public function rename($oldDN, $newDN, $parentDN = '', $deleteOldDN = true){
$connection = $this->connect();
$result = ldap_rename($connection, $oldDN, $newDN, $parentDN, $deleteOldDN);
if(!$result) $this->ldapError();
return $result;
}
@ -123,10 +124,8 @@ class ldapService
}
public function disconnect(){
if($this->connection) {
ldap_unbind($this->connection);
$this->connection=null;
}
$connection = $this->connect();
ldap_unbind($connection);
}
public function ldapError(){