Code

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

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

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

index b7593981f6266526f29e4daeb43fd37e44d36746..30b8ce1ebd5e8f882b951253f3281f7fc8bd72cc 100644 (file)
@@ -1436,8 +1436,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);
   }