summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 213a770)
raw | patch | inline | side by side (parent: 213a770)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Sep 2006 09:26:00 +0000 (09:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Sep 2006 09:26:00 +0000 (09:26 +0000) |
Added uid to class members
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4689 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4689 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 5e15d269b9d2efc1bc03cc3e5c8bb29806cd6bc6..51cda502ce1b6f21b09cc678bd5fb5f8c919cb11 100644 (file)
{
plugin::plugin ($config, $dn);
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
/* Check : Are we currently editing a group or user dialog */
if((isset($this->attrs['cn'][0]))&&(!isset($this->attrs['uid'][0]))){
$suffix="Group";
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/environment account with dn '%s' failed."),$this->dn));
/* 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(), sprintf(_("Saving of user/environment account with dn '%s' failed."),$this->dn));
- $this->handle_post_events($mode);
+ $this->handle_post_events($mode,array("uid"=>$this->uid));
}
/* Generate ListBox frindly output for the defined shares
index 3b4e2037435928ff7ed55a229fd26de6bc5c2f68..b995a384c7505b7677a1023200fd5e84f7168b0c 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/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc
index 541a31d4dcae964fe031428dc3225872592ee9f1..1161d9173fe434c5f887902fb681f69ab6584193 100644 (file)
"gosaMailDeliveryMode", "gosaSpamSortLevel", "gosaSpamMailbox","gosaMailAlternateAddress",
"gosaVacationMessage", "gosaMailAlternateAddress", "gosaMailForwardingAddress");
var $objectclasses= array("gosaMailAccount");
-
+ var $uid;
/* constructor, if 'dn' is set, the node loads the given
'dn' from LDAP */
/* Load bases attributes */
plugin::plugin($config, $dn);
+ /* Set uid */
if(isset($this->attrs['uid'])){
$this->uid = $this->attrs['uid'][0];
}
}
/* 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/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc
index 51a522cb2798c72cd13c369d3ca834dade9a69ef..9c679f6e9a2ed4329cce4b02cf745b1605afbe85 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);
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $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 5d82f6e9939ba06961b944e8ca02383fef58f78e..78451c543c11bf96ec34ba3539c0f46f7458a67c 100644 (file)
/* Checkboxes */
var $is_chk_box = array ();
-
+ var $uid = "";
function get_shares()
{
$this->shares_loaded= TRUE;
$this->config = $config;
plugin :: plugin($config, $dn);
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
/* Copy needed attributes */
foreach($this->use_save_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 4ed5ee14cda2950486f1988ee387d2bdc6d69ef3..b7b03c299a65a772f7f2c3392e98517d3a2b433e 100644 (file)
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);
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $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 c9c48a1ee812dac2ab9a85ecc7d6d33ecd0db264..017e4d7588f7ccf4d0ddc6968ac10b1e082ef578 100644 (file)
var $ctxattributes= array();
var $attributes= array();
var $objectclasses= array();
+
+ var $uid= "";
var $CopyPasteVars = array("kickoff_time_set","logoff_time_set","logon_time_set","mungedObject","orig_sambaDomainName");
plugin::plugin ($config, $dn);
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $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(), sprintf(_("Removing of user/samba account with dn '%s' failed."),$this->dn));
/* 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));
}
}