From: hickert Date: Fri, 7 Nov 2008 07:48:58 +0000 (+0000) Subject: Copy and Paste of more than one user at once led into duplicated uids X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;ds=sidebyside;h=56f6dbc6b52cb321b3a1f8b54d7c61cedc253212;p=gosa.git Copy and Paste of more than one user at once led into duplicated uids -Fixed uid creation for copied objects. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12956 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc index 6c10c6670..213850ee1 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -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 = ""; }