Code

Fixed - User couldn't be moved, if cn wasn't touched
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Mar 2007 13:17:37 +0000 (13:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Mar 2007 13:17:37 +0000 (13:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5790 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc

index 7cdd417f34dbfb2bc6c39c6700b0e9f84528c7b9..cf43e10daccf94ffb76b85101496bac2a8138c2b 100644 (file)
@@ -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);