From cf667484b2c09ab24a70c317f5b1a06e4fb5492d Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 9 Nov 2006 08:05:45 +0000 Subject: [PATCH] Skip saving user certificate in copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5056 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index cbc936215..cc0d30ac2 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -1301,6 +1301,23 @@ class user extends plugin } } } + + + function PrepareForCopyPaste($source) + { + plugin::PrepareForCopyPaste($source); + + /* Reset certificate information addepted from source user + to avoid setting the same user certificate for the destination user. */ + $this->userPKCS12= ""; + $this->userSMIMECertificate= ""; + $this->userCertificate= ""; + $this->certificateSerialNumber= ""; + $this->old_certificateSerialNumber= ""; + $this->old_userPKCS12= ""; + $this->old_userSMIMECertificate= ""; + $this->old_userCertificate= ""; + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -- 2.30.2