Code

Avoid using the same gid/uid number
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Nov 2006 08:44:00 +0000 (08:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Nov 2006 08:44:00 +0000 (08:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5057 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/posix/class_posixAccount.inc

index 9db5681170926940b3d9bb84fb67474cac4b2029..bfec00558d127a7b990153d4e0d53e0184de3542 100644 (file)
@@ -1256,6 +1256,14 @@ class posixAccount extends plugin
     return($ret);
   }
 
+  function PrepareForCopyPaste($source)
+  {
+    plugin::PrepareForCopyPaste($source);
+    
+    /* Avoid using the same gid/uid number as source user */
+    $this->savedUidNumber = $this->get_next_id("gidNumber");
+    $this->savedGidNumber = $this->get_next_id("uidNumber");
+  }
 
   function convertToSeconds($val)
   {