summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea09927)
raw | patch | inline | side by side (parent: ea09927)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Sep 2006 07:54:30 +0000 (07:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Sep 2006 07:54:30 +0000 (07:54 +0000) |
And add uid to class members, if necessary.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4682 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4682 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 79471d4329af60a6de73e02a7895efd485b5fdcf..6bc6cbd6ee3112b507d3870896d9ebf63c1fdee8 100644 (file)
show_ldap_error($ldap->get_error(), _("Removing environment information failed"));
/* Optionally execute a command after we're done */
- $this->handle_post_events("remove");
+ $this->handle_post_events("remove",array("uid" => $this->uid));
}
$this->cleanup();
$ldap->$mode($this->attrs);
show_ldap_error($ldap->get_error(), _("Adding environment information failed"));
- $this->handle_post_events($mode);
+ $this->handle_post_events($mode,array("uid"=>$this->uid));
}
/* Generate ListBox frindly output for the defined shares
index add19922d867cbe461fd23bf550c9d9a692fd0ec..1d758a2f699604625eabcdd862d2ba0574f03dea 100644 (file)
}
/* Optionally execute a command after we're done */
- $this->handle_post_events("remove");
+ $this->handle_post_events("remove",array("uid" => $this->uid));
}
/* Optionally execute a command after we're done */
if ($mode == "add"){
- $this->handle_post_events("add");
+ $this->handle_post_events("add",array("uid" => $this->uid));
} elseif ($this->is_modified){
- $this->handle_post_events("modify");
+ $this->handle_post_events("modify",array("uid" => $this->uid));
}
/* Fix tagging if needed */
diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc
index fc6e04899671673f0d5283adafd873091b8b19f4..a95f64aaf7a790f1cf2b38922e892854a3d1ca6f 100644 (file)
var $objectclasses= array("nagiosContact","nagiosAuth");
+ var $uid = "";
+
/* constructor, if 'dn' is set, the node loads the given
'dn' from LDAP */
function nagiosAccount ($config, $dn= NULL)
plugin::plugin ($config, $dn);
+ /* Set uid */
+ if(isset($this->attrs['uid'])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
/* Save initial account state */
$this->initially_was_account= $this->is_account;
}
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
if ($this->is_modified){
- $this->handle_post_events("modify");
+ $this->handle_post_events("modify",array("uid" => $this->uid));
}
} else {
- $this->handle_post_events("add");
+ $this->handle_post_events("add", array("uid" => $this->uid));
}
}
unset ($this->attrs['uid']);
/* Optionally execute a command after we're done */
- $this->handle_post_events('remove');
+ $this->handle_post_events('remove',array("uid"=>$this->uid));
}
}
diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc
index 7e66f6ce8584dc699110c6ff801019152cd59be9..73343859a4cf0f2664adeaf0322498c99ed9c721 100644 (file)
/* Checkboxes */
var $is_chk_box = array ();
-
+
+ var $uid ="";
/* The constructor just saves a copy of the config. You may add what ever you need. */
function netatalk($config, $dn = NULL) {
$this->config = $config;
plugin :: plugin($config, $dn);
+ /* set user id */
+ if(isset($this->attrs['uid'])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
/* Copy needed attributes */
foreach($this->attributes as $val) {
if (isset($this->attrs["$val"][0])) {
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account) {
if ($this->is_modified) {
- $this->handle_post_events("modify");
+ $this->handle_post_events("modify",array("uid" => $this->uid));
}
} else {
- $this->handle_post_events("add");
+ $this->handle_post_events("add",array("uid" => $this->uid));
}
}
unset ($this->attrs['uid']);
/* Optionally execute a command after we're done */
- $this->handle_post_events('remove');
+ $this->handle_post_events('remove', array("uid" => $this->uid));
}
}
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index bf803b6706b37ebab9a7ca770e9642c98a085053..a79ba689cf9f5ac23e89ada71ebd96a02e65be4a 100644 (file)
"shadowExpire", "gosaDefaultPrinter", "gosaDefaultLanguage", "uid","accessTo","trustModel");
var $objectclasses= array("posixAccount", "shadowAccount");
+ var $uid ="";
/* constructor, if 'dn' is set, the node loads the given
'dn' from LDAP */
/* Load bases attributes */
plugin::plugin($config, $dn);
+ /* set user id */
+ if(isset($this->attrs['uid'])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
$ldap= $this->config->get_ldap_link();
if ($dn != NULL){
}
/* Optionally execute a command after we're done */
- $this->handle_post_events("remove");
+ $this->handle_post_events("remove", array("uid" => $this->uid));
}
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
if ($this->is_modified){
- $this->handle_post_events("modify");
+ $this->handle_post_events("modify",array("uid" => $this->uid));
}
} else {
- $this->handle_post_events("add");
+ $this->handle_post_events("add",array("uid" , $this->uid));
}
}
diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc
index 31721d67b8eca443dc299a41699ed7b93ed39823..883005925aa8051cc8d222d9806d133c0060edc1 100644 (file)
var $attributes= array();
var $objectclasses= array();
+ var $uid = "";
+
var $CopyPasteVars = array("kickoff_time_set","logoff_time_set","logon_time_set","mungedObject","orig_sambaDomainName");
function sambaAccount ($config, $dn= NULL)
plugin::plugin ($config, $dn);
+ /* set user id */
+ if(isset($this->attrs['uid'])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
/* Get samba Domain in case of samba 3 */
if ($this->samba3 && $this->sambaSID != ""){
$this->SID= preg_replace ("/-[^-]+$/", "", $this->sambaSID);
show_ldap_error($ldap->get_error(), _("Removing Samba account failed"));
/* Optionally execute a command after we're done */
- $this->handle_post_events("remove");
+ $this->handle_post_events("remove",array("uid"=>$this->uid));
}
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
if ($this->is_modified){
- $this->handle_post_events("modify");
+ $this->handle_post_events("modify",array("uid" => $this->uid));
}
} else {
- $this->handle_post_events("add");
+ $this->handle_post_events("add",array("uid" => $this>uid));
}
}