fixed renaming of entries

This commit is contained in:
Roland Gruber 2013-11-24 10:04:19 +00:00
parent 2bac9ccff8
commit e972e9d071
1 changed files with 1 additions and 1 deletions

View File

@ -1789,7 +1789,7 @@ class accountContainer {
&& ($attributes[$this->finalDN]['modify'][$rdnAttr][0] == extractRDNValue($this->finalDN))) {
// remove old RDN if attribute is single valued
$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);
$success = ldap_rename($_SESSION['ldap']->server(), $this->dn_orig, $this->getRDN($this->finalDN), $this->getParentDN($this->finalDN), $removeOldRDN);