Code

Skip saving user certificate in copy & paste
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Nov 2006 08:05:45 +0000 (08:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Nov 2006 08:05:45 +0000 (08:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5056 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc

index cbc936215356373f2956dc4a33cbd9e06e9b2800..cc0d30ac28ec786d56a00bf6f40b67913a1a56e8 100644 (file)
@@ -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: