Code

Copy and Paste of more than one user at once led into duplicated uids
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Nov 2008 07:48:58 +0000 (07:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Nov 2008 07:48:58 +0000 (07:48 +0000)
-Fixed uid creation for copied objects.

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

gosa-core/plugins/personal/posix/class_posixAccount.inc

index 6c10c6670abd2ff47860e34e2aa0c314fa2b4aeb..213850ee1c9ea6bae0a9719667d8575e45cc0690 100644 (file)
@@ -1491,9 +1491,12 @@ class posixAccount extends plugin
   {
     plugin::PrepareForCopyPaste($source);
 
-    /* Avoid using the same gid/uid number as source user */
-    $this->savedUidNumber = $this->get_next_id("uidNumber", $this->dn);
-    $this->savedGidNumber = $this->get_next_id("gidNumber", $this->dn);
+    /* Avoid using the same gid/uid number as source user 
+        empty numbers to enforce new ones. */
+#    $this->savedUidNumber = $this->get_next_id("uidNumber", $this->dn);
+    $this->savedUidNumber = "";
+#    $this->savedGidNumber = $this->get_next_id("gidNumber", $this->dn);
+    $this->savedGidNumber = "";
   }