Code

Updated class user.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Sep 2010 08:45:38 +0000 (08:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Sep 2010 08:45:38 +0000 (08:45 +0000)
-Do not move the user with class_user.inc anymore, we are now using tabs.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19520 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/generic/class_user.inc

index eb83980adf297ff30a4707f3f853270e5d3d9a60..45b0e081eaa031ea0391b8a886514a58a071a0ea 100644 (file)
@@ -1067,22 +1067,23 @@ class user extends plugin
 
     }
 
-    /* This only gets called when user is renaming himself */
-    $ldap= $this->config->get_ldap_link();
-    if ($this->dn != $this->new_dn){
-
-      /* Write entry on new 'dn' */
-      $this->update_acls($this->dn,$this->new_dn);
-      $this->move($this->dn, $this->new_dn);
-
-      /* Happen to use the new one */
-      change_ui_dn($this->dn, $this->new_dn);
-      $this->dn= $this->new_dn;
-    }
+#    /* This only gets called when user is renaming himself */
+#    $ldap= $this->config->get_ldap_link();
+#   if ($this->dn != $this->new_dn){
+#
+#     /* Write entry on new 'dn' */
+#     $this->update_acls($this->dn,$this->new_dn);
+#     $this->move($this->dn, $this->new_dn);
+#
+#     /* Happen to use the new one */
+#     change_ui_dn($this->dn, $this->new_dn);
+#     $this->dn= $this->new_dn;
+#   }
 
 
     /* Save data. Using 'modify' implies that the entry is already present, use 'add' for
        new entries. So do a check first... */
+    $ldap= $this->config->get_ldap_link();
     $ldap->cat ($this->dn, array('dn'));
     if ($ldap->fetch()){
       $mode= "modify";