Code

Do not copy samba SID, create a new id when user is copied.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jan 2008 13:53:57 +0000 (13:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jan 2008 13:53:57 +0000 (13:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8568 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/samba/class_sambaAccount.inc

index b01a852cc57050a01c4276f710bdd1462eec06c6..f563e6d3323643660bb9f0afed50248beba37803 100644 (file)
@@ -1122,11 +1122,15 @@ class sambaAccount extends plugin
       $sambafilter= array( "depselect" => $base, "regex" => "*");
       register_global("sambafilter", $sambafilter);
     }
+  }
 
+  function PrepareForCopyPaste($source)
+  {
+    plugin::PrepareForCopyPaste($source);
 
+    /* Set a new SID and force a new group with new sambaPrimaryGroupSID */
+    $this->sambaSID = "";
   }
-
 }
-
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>