summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6d35741)
raw | patch | inline | side by side (parent: 6d35741)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Sep 2006 09:17:01 +0000 (09:17 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Sep 2006 09:17:01 +0000 (09:17 +0000) |
Initialize uid in konstruktor.
Set uid for post events
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4688 594d385d-05f5-0310-b6e9-bd551577e9d8
Set uid for post events
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4688 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/personal/connectivity/class_intranetAccount.inc b/plugins/personal/connectivity/class_intranetAccount.inc
index fb7f940203a07571fbc898232c77a8d691d3627b..f3fc0fdf60739011d464d01c78d2c9098a5c4e71 100644 (file)
var $objectclasses= array("gosaIntranetAccount");
var $ReadOnly = false;
+ var $uid ="";
+
/*! \brief Konstructor
\param $config The Config Object used to initialise plugin
function intranetAccount ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
}
/*!
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/intranet account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
- $this->postremove();
+ $this->postremove(array("uid"=>$this->uid));
}
}
show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/intranet account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
- $this->postcreate();
+ $this->postcreate(array("uid" = $this->uid));
}
diff --git a/plugins/personal/connectivity/class_kolabAccount.inc b/plugins/personal/connectivity/class_kolabAccount.inc
index 6ea6d97d71aaae930d9f018e9019ca2bc3e926f9..55fd229c96de828b4a95ce53b69fd4b67687aeaa 100644 (file)
var $mail_Account = false;
var $ReadOnly = false;
+ var $uid = "";
+
function kolabAccount ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
/* Pull arrays */
foreach(array("kolabDelegate", "kolabInvitationPolicy") as $attr){
if (isset($this->attrs["$attr"]["count"])){
$ldap->cd ($this->dn);
$ldap->modify($this->attrs);
- $this->handle_post_events('remove');
+ $this->handle_post_events('remove',array("uid" => $this->uid));
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/kolab account with dn '%s' failed."),$this->dn));
}
/* 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/connectivity/class_opengwAccount.inc b/plugins/personal/connectivity/class_opengwAccount.inc
index c1da16c24cef60de5fc5964c942891caa586ebc6..8a07e60f5704068c007827bd9f57386030970616 100644 (file)
var $initialy_was_account = false;
var $OGWPassword = "";
var $ReadOnly = false;
+
+ var $uid = "";
function opengwAccount ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
$this->info=array();
/* is no account and was no account */
diff --git a/plugins/personal/connectivity/class_oxchangeAccount.inc b/plugins/personal/connectivity/class_oxchangeAccount.inc
index 5a89f8dd4a43124369441508f6e5fe612ddcd044..caf7c4a8c51326d5a606f28dd7c734f59682db44 100644 (file)
);
var $dnmode= "";
+ var $uid ="";
function oxchangeAccount ($config, $dn= NULL)
{
}
}
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
$this->dnmode= $this->config->current['DNMODE'];
if(isset($this->attrs[$this->dnmode][0])){
$this->dnModeValue = $this->attrs[$this->dnmode][0];
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/oxchange addressbook account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
- $this->postremove();
+ $this->postremove(array("uid" => $this->uid));
/* Finally remove data from postgresql server */
foreach ($sqldeluser as $sqls){
show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/oxchange account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
- $this->postcreate();
+ $this->postcreate(array("uid" => $this->uid));
if($needupdate){
$ldap->create_missing_trees("ou=addr,".$this->dn);
diff --git a/plugins/personal/connectivity/class_phpgwAccount.inc b/plugins/personal/connectivity/class_phpgwAccount.inc
index b11ecf4d7ac4bdea68374b9b0eaaf26d9824af21..ab17e81abe946bb56d0c10ce369db625c57d24c8 100644 (file)
var $objectclasses= array("phpgwAccount");
var $ReadOnly = false;
+ var $uid = "";
+
function phpgwAccount ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
}
function execute()
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/PHPgw 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));
}
}
diff --git a/plugins/personal/connectivity/class_phpscheduleitAccount.inc b/plugins/personal/connectivity/class_phpscheduleitAccount.inc
index 1f5b04f654da8b6e1b0bf9ece768c93bb7a4973a..ecbf26e94a677157dbffe50805420ab53720116f 100644 (file)
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/PHPscheduleit 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));
}
}
diff --git a/plugins/personal/connectivity/class_pptpAccount.inc b/plugins/personal/connectivity/class_pptpAccount.inc
index 626c100353e6ff8c72d003d40b42d3bd5af39bc1..52baf5ca232f7b6884a668658d8abd552d741424 100644 (file)
var $ReadOnly = false;
+ var $uid ="";
+
function pptpAccount ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
}
function execute()
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/PPTP 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));
}
}
}
diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc
index 4f61ac5eee90d043adde0fa63b22e2a30229c554..dbd3869a5e7917090989c8e2535343420faf974e 100644 (file)
var $objectclasses= array("gosaProxyAccount");
var $ReadOnly = false;
+ var $uid = "";
+
function proxyAccount ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
}
function execute()
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/proxy 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));
}
}
diff --git a/plugins/personal/connectivity/class_pureftpdAccount.inc b/plugins/personal/connectivity/class_pureftpdAccount.inc
index b9344a733e80e2c5b2a1e691e32f9cdc4a8c1a5b..854797e0629c1b710939fd6f035456d6b937bbfc 100644 (file)
var $FTPuid = "";
var $FTPgid = "";
+ var $uid = "";
+
/* attribute list for save action */
var $attributes= array("FTPQuotaFiles","FTPQuotaMBytes","FTPUploadRatio","FTPDownloadRatio",
"FTPUploadBandwidth","FTPDownloadBandwidth","FTPStatus","FTPuid","FTPgid");
function pureftpdAccount ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
}
function execute()
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/pureftpd 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));
}
}
diff --git a/plugins/personal/connectivity/class_webdavAccount.inc b/plugins/personal/connectivity/class_webdavAccount.inc
index 7f13e27340f78df601f4634eabcefe12503b3dd9..738dda5d377a8c7878a1b8cf86fbbe5393dac157 100644 (file)
var $objectclasses= array("gosaWebdavAccount");
var $ReadOnly = false;
+ var $uid ="";
+
function webdavAccount ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+
+ /* Setting uid to default */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
+
}
function execute()
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/webDAV 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));
}
}
}