From 56f6dbc6b52cb321b3a1f8b54d7c61cedc253212 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 7 Nov 2008 07:48:58 +0000 Subject: [PATCH] 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 --- gosa-core/plugins/personal/posix/class_posixAccount.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 = ""; } -- 2.30.2