Code

Important update for posixAccount.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 31 Jan 2008 07:16:36 +0000 (07:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 31 Jan 2008 07:16:36 +0000 (07:16 +0000)
=gid/uidNumber interchanged=
 -Occurred when using copy & paste.
 -Caused duplicated uidNumbers in some cases.

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

plugins/personal/posix/class_posixAccount.inc

index 8cd19aed072934367726dc774c85f8c1f05f4078..2a59d5b86323e1051632f534a586f1367022dd07 100644 (file)
@@ -1283,8 +1283,8 @@ class posixAccount extends plugin
     plugin::PrepareForCopyPaste($source);
     
     /* Avoid using the same gid/uid number as source user */
-    $this->savedUidNumber = $this->get_next_id("gidNumber", $this->dn);
-    $this->savedGidNumber = $this->get_next_id("uidNumber", $this->dn);
+    $this->savedUidNumber = $this->get_next_id("uidNumber", $this->dn);
+    $this->savedGidNumber = $this->get_next_id("gidNumber", $this->dn);
   }
 
   function convertToSeconds($val)