From c003b9aec3f4dbab8c57a04a27c033e9c5d6eae9 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 9 Nov 2006 08:44:00 +0000 Subject: [PATCH] Avoid using the same gid/uid number git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5057 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 9db568117..bfec00558 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -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) { -- 2.30.2