From: hickert Date: Thu, 9 Nov 2006 08:44:00 +0000 (+0000) Subject: Avoid using the same gid/uid number X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c003b9aec3f4dbab8c57a04a27c033e9c5d6eae9;p=gosa.git 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 --- 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) {