fixed renaming of entries
This commit is contained in:
parent
2bac9ccff8
commit
e972e9d071
|
@ -1789,7 +1789,7 @@ class accountContainer {
|
||||||
&& ($attributes[$this->finalDN]['modify'][$rdnAttr][0] == extractRDNValue($this->finalDN))) {
|
&& ($attributes[$this->finalDN]['modify'][$rdnAttr][0] == extractRDNValue($this->finalDN))) {
|
||||||
// remove old RDN if attribute is single valued
|
// remove old RDN if attribute is single valued
|
||||||
$removeOldRDN = true;
|
$removeOldRDN = true;
|
||||||
unset($attributes[$this->finalDN]['modify'][$this->getRDN($this->finalDN)]);
|
unset($attributes[$this->finalDN]['modify'][extractRDNAttribute($this->finalDN)]);
|
||||||
}
|
}
|
||||||
logNewMessage(LOG_DEBUG, 'Rename ' . $this->dn_orig . ' to ' . $this->finalDN);
|
logNewMessage(LOG_DEBUG, 'Rename ' . $this->dn_orig . ' to ' . $this->finalDN);
|
||||||
$success = ldap_rename($_SESSION['ldap']->server(), $this->dn_orig, $this->getRDN($this->finalDN), $this->getParentDN($this->finalDN), $removeOldRDN);
|
$success = ldap_rename($_SESSION['ldap']->server(), $this->dn_orig, $this->getRDN($this->finalDN), $this->getParentDN($this->finalDN), $removeOldRDN);
|
||||||
|
|
Loading…
Reference in New Issue