summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d0af6c)
raw | patch | inline | side by side (parent: 2d0af6c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Jun 2006 11:02:04 +0000 (11:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Jun 2006 11:02:04 +0000 (11:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3986 594d385d-05f5-0310-b6e9-bd551577e9d8
16 files changed:
diff --git a/plugins/personal/connectivity/class_intranetAccount.inc b/plugins/personal/connectivity/class_intranetAccount.inc
index d891007ed67d922127d98e74fdc0c308a6cfc42b..5f55a3f22760be6ec8d61bb846146a3af86b7e4f 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing intranet account failed"));
+ 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->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving intranet account failed"));
+ 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();
diff --git a/plugins/personal/connectivity/class_kolabAccount.inc b/plugins/personal/connectivity/class_kolabAccount.inc
index 16e23b9fa12cecc0176ba893c4eb4d04f112de33..389bc753d8d0e1a02757c56a73175376a1fe3523 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving Kolab account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/kolav account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
diff --git a/plugins/personal/connectivity/class_oxchangeAccount.inc b/plugins/personal/connectivity/class_oxchangeAccount.inc
index 6104d2574cda31fa7190842f65b4d056536d2da7..36db420f9e3004dedc631ea62fb78fed4638b019 100644 (file)
if($ldap->dn_exists("ou=addr,".$this->dn)){
$ldap->rmdir_recursive("ou=addr,".$this->dn);
- show_ldap_error($ldap->get_error(), _("Removing of oxchange addressbook failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/oxchange addressbook account with dn '%s' failed."),$this->dn));
}
$ldap->cd($this->dn);
$this->attributes, "Save");
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing oxchange account failed"));
+ 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->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving of oxchange account failed"));
+ 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();
if($needupdate){
$ldap->create_missing_trees("ou=addr,".$this->dn);
- show_ldap_error($ldap->get_error(), _("Creating oxchange addressbook tree failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Creating of user/oxchange account with dn '%s' failed."),$this->dn));
/* Finally save data to postgresql server */
pg_set_client_encoding ("UNICODE");
$nv = "SELECT nextval ('serial_id')";
diff --git a/plugins/personal/connectivity/class_phpgwAccount.inc b/plugins/personal/connectivity/class_phpgwAccount.inc
index b70991a9610f9b68270a9f888dec6958ac0fc178..37162cea9c254e289205dc98e7d8b5315095db7a 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing PHPgw account failed"));
+ 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->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving PHPgw account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/PHPgw account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
diff --git a/plugins/personal/connectivity/class_phpscheduleitAccount.inc b/plugins/personal/connectivity/class_phpscheduleitAccount.inc
index 63536b2c334876732a4760f9af6a9851a8c8d4bf..9bbb7de4e256e3af3f06abb3e8b4c467f28b714b 100644 (file)
$this->attributes, "Save");
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing PHPscheduleit account failed"));
+ 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->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving PHPscheduleit account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/PHPscheduleit account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
diff --git a/plugins/personal/connectivity/class_pptpAccount.inc b/plugins/personal/connectivity/class_pptpAccount.inc
index 04ea2390c463ac95cfa63ed3dcd34f4fd0a775ac..266e70caa693574b9ca1d6791e1636e891a0c4dc 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing PPTP account failed"));
+ 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->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving PPTP account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/PPTP account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc
index de1cc587b75af73f351ff656f181a575699cf6ac..ff407a20e1192069b8023006609dd61a6331742d 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing proxy account failed"));
+ 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->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving proxy account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/proxy account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
diff --git a/plugins/personal/connectivity/class_pureftpdAccount.inc b/plugins/personal/connectivity/class_pureftpdAccount.inc
index aa55f5d26e70cc976f09b44819ed10beb246eeb6..1b189109b701482e074b92755341b53a96a730e6 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing pureftpd account failed"));
+ 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->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving pureftpd account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/pureftpd account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
diff --git a/plugins/personal/connectivity/class_webdavAccount.inc b/plugins/personal/connectivity/class_webdavAccount.inc
index ba0c5ec206d2b42db64eb7d7aac8bec1b31fdc5b..a438837c9b37d177011a78e135fdc06425cdb295 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing webDAV account failed"));
+ 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->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving webDAV account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/webDAV account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 0fd801e1a9463cf5c63ec1b7fa5d972245ac041c..5b5881132cfdbfe1133981ca51c15a09280f6eb3 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing environment information failed"));
+ 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");
$ldap->cd($this->dn);
$this->cleanup();
$ldap->$mode($this->attrs);
- show_ldap_error($ldap->get_error(), _("Adding environment information failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/environment account with dn '%s' failed."),$this->dn));
$this->handle_post_events($mode);
}
index ec56ed885bf14dc326de4d57bcc74ce677f5445f..2d67d8d59d807c3d946f04ca6b090effd792d6b3 100644 (file)
{
$ldap= $this->config->get_ldap_link();
$ldap->rmdir ($this->dn);
- show_ldap_error($ldap->get_error(), _("Removing generic user account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/generic account with dn '%s' failed."),$this->dn));
/* Delete references to groups */
$ldap->cd ($this->config->current['BASE']);
$this->cleanup();
$ldap->cd ($this->dn);
$ldap->$mode ($this->attrs);
- if (show_ldap_error($ldap->get_error(), _("Saving generic user account failed"))){
+ if (show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/generic account with dn '%s' failed."),$this->dn))){
return (1);
}
diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc
index 2ade42931fd6ba40db14abc15ff3f512564c0e5c..db93e30055765c390dabc5d43dba03dd579ceb96 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing mail account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/mail account with dn '%s' failed."),$this->dn));
/* Connect to IMAP server for account deletion */
if ($this->gosaMailServer != ""){
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving mail account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/mail account with dn '%s' failed."),$this->dn));
/* Only do IMAP actions if we are not a template */
if (!$this->is_template){
diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc
index fc6e04899671673f0d5283adafd873091b8b19f4..482cd1cb36c567ffac0b8e0c8c689c2aab63265e 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving nagios account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/nagios account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing nagios account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/nagios account with dn '%s' failed."),$this->dn));
/* remove the entry from LDAP */
unset ($this->attrs['uid']);
diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc
index 7e66f6ce8584dc699110c6ff801019152cd59be9..ab353001cc91bd804e41b09e6292cf8d808c44ac 100644 (file)
$this->cleanup();
$ldap->modify($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving Netatalk account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/netatalk account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account) {
$this->cleanup();
$ldap->modify($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing Netatalk account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/netatalk account with dn '%s' failed."),$this->dn));
/* remove the entry from LDAP */
unset ($this->attrs['uid']);
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index 758ea14d88942b783914a2dbbb07aea0979f3175..a924ebf58335cc08690ed1a4b1af3b0df36f3a35 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing UNIX account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/posix account with dn '%s' failed."),$this->dn));
/* Delete group only if cn is uid and there are no other
members inside */
unset($this->attrs['uid']);
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving UNIX account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/posix account with dn '%s' failed."),$this->dn));
/* Remove lock needed for unique id generation */
del_lock ("uidnumber");
diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc
index 31721d67b8eca443dc299a41699ed7b93ed39823..f33d5e81623407308669cf48ef957d54ffcd4da3 100644 (file)
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing Samba account failed"));
+ 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->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Saving Samba account failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/samba account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){