From: hickert Date: Thu, 15 Mar 2007 13:17:37 +0000 (+0000) Subject: Fixed - User couldn't be moved, if cn wasn't touched X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c6180c464b2208e8be1fe0fc0f7a54e0ae4aad1b;p=gosa.git Fixed - User couldn't be moved, if cn wasn't touched git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5790 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 7cdd417f3..cf43e10da 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -1002,7 +1002,9 @@ class user extends plugin $this->new_dn= 'uid='.$this->uid.','.get_people_ou().$this->base; } else { /* Don't touch dn, if cn hasn't changed */ - if (isset($this->saved_attributes['cn']) && $this->saved_attributes['cn'] == $this->cn){ + if (isset($this->saved_attributes['cn']) && $this->saved_attributes['cn'] == $this->cn + && (isset($this->saved_attributes['base']) && $this->saved_attributes['base'] == $this->base ) + ){ $this->new_dn= $this->dn; } else { $this->new_dn= $this->create_unique_dn('cn', get_people_ou().$this->base);