From 525f8dc8f2f1b66991f612e542d875b9082512b1 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 30 Jun 2006 06:09:45 +0000 Subject: [PATCH] Added missing error msgs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4006 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiProfile.inc | 2 +- plugins/admin/systems/class_goCupsServer.inc | 6 +++--- plugins/admin/systems/class_goFaxServer.inc | 7 ++++--- plugins/admin/systems/class_goFonServer.inc | 6 +++--- plugins/admin/systems/class_goGlpiServer.inc | 6 +++--- plugins/admin/systems/class_goImapServer.inc | 6 +++--- plugins/admin/systems/class_goKrbServer.inc | 6 +++--- plugins/admin/systems/class_goLdapServer.inc | 6 +++--- plugins/admin/systems/class_goLogDBServer.inc | 6 +++--- plugins/admin/systems/class_goMailServer.inc | 6 +++--- plugins/admin/systems/class_goNtpServer.inc | 6 +++--- plugins/admin/systems/class_goSyslogServer.inc | 6 +++--- plugins/admin/systems/class_goTerminalServer.inc | 6 +++--- plugins/admin/systems/class_servRepository.inc | 2 +- 14 files changed, 39 insertions(+), 38 deletions(-) diff --git a/plugins/admin/fai/class_faiProfile.inc b/plugins/admin/fai/class_faiProfile.inc index 78f8f915f..89df309c2 100644 --- a/plugins/admin/fai/class_faiProfile.inc +++ b/plugins/admin/fai/class_faiProfile.inc @@ -430,7 +430,7 @@ class faiProfile extends plugin /* Do object tagging */ $this->handle_object_tagging(); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving of FAI/profile with dn '%s' failed."),$this->dn)); } } diff --git a/plugins/admin/systems/class_goCupsServer.inc b/plugins/admin/systems/class_goCupsServer.inc index 677c98674..b244ef77b 100644 --- a/plugins/admin/systems/class_goCupsServer.inc +++ b/plugins/admin/systems/class_goCupsServer.inc @@ -73,7 +73,7 @@ class goCupsServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing of server services/cups with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -97,7 +97,7 @@ class goCupsServer extends plugin{ $this->handle_post_events("add"); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving of server services/cups with dn '%s' failed."),$this->dn)); } @@ -119,7 +119,7 @@ class goCupsServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/cups with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goFaxServer.inc b/plugins/admin/systems/class_goFaxServer.inc index 9a1a73240..c15b88554 100644 --- a/plugins/admin/systems/class_goFaxServer.inc +++ b/plugins/admin/systems/class_goFaxServer.inc @@ -76,7 +76,7 @@ class goFaxServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/gofax with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -99,7 +99,7 @@ class goFaxServer extends plugin{ }else{ $this->handle_post_events("add"); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/gofax with dn '%s' failed."),$this->dn)); } @@ -121,7 +121,8 @@ class goFaxServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/gofax with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goFonServer.inc b/plugins/admin/systems/class_goFonServer.inc index 231397674..a8aa3ca79 100644 --- a/plugins/admin/systems/class_goFonServer.inc +++ b/plugins/admin/systems/class_goFonServer.inc @@ -79,7 +79,7 @@ class goFonServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/gofon with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -97,7 +97,7 @@ class goFonServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/gofon with dn '%s' failed."),$this->dn)); if($this->initially_was_account){ $this->handle_post_events("modify"); }else{ @@ -124,7 +124,7 @@ class goFonServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/gofon with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goGlpiServer.inc b/plugins/admin/systems/class_goGlpiServer.inc index bc98853ae..d2ca6ddfd 100644 --- a/plugins/admin/systems/class_goGlpiServer.inc +++ b/plugins/admin/systems/class_goGlpiServer.inc @@ -78,7 +78,7 @@ class goGlpiServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/glpi with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -96,7 +96,7 @@ class goGlpiServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/glpi with dn '%s' failed."),$this->dn)); if($this->initially_was_account){ $this->handle_post_events("modify"); }else{ @@ -123,7 +123,7 @@ class goGlpiServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/glpi with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goImapServer.inc b/plugins/admin/systems/class_goImapServer.inc index 890180021..934d78842 100644 --- a/plugins/admin/systems/class_goImapServer.inc +++ b/plugins/admin/systems/class_goImapServer.inc @@ -109,7 +109,7 @@ class goImapServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/imap with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -127,7 +127,7 @@ class goImapServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/imap with dn '%s' failed."),$this->dn)); if($this->initially_was_account){ $this->handle_post_events("modify"); }else{ @@ -155,7 +155,7 @@ class goImapServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/imap with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goKrbServer.inc b/plugins/admin/systems/class_goKrbServer.inc index 6ba4e2302..4b1fb91d7 100644 --- a/plugins/admin/systems/class_goKrbServer.inc +++ b/plugins/admin/systems/class_goKrbServer.inc @@ -76,7 +76,7 @@ class goKrbServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/gokrb with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -94,7 +94,7 @@ class goKrbServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/gokrb with dn '%s' failed."),$this->dn)); if($this->initially_was_account){ $this->handle_post_events("modify"); }else{ @@ -121,7 +121,7 @@ class goKrbServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/gokrb with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goLdapServer.inc b/plugins/admin/systems/class_goLdapServer.inc index 97e93f654..3f5ec4b38 100644 --- a/plugins/admin/systems/class_goLdapServer.inc +++ b/plugins/admin/systems/class_goLdapServer.inc @@ -74,7 +74,7 @@ class goLdapServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/ldap with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -92,7 +92,7 @@ class goLdapServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/ldap with dn '%s' failed."),$this->dn)); if($this->initially_was_account){ $this->handle_post_events("modify"); }else{ @@ -120,7 +120,7 @@ class goLdapServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/ldap with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goLogDBServer.inc b/plugins/admin/systems/class_goLogDBServer.inc index 42477edce..0667031f5 100644 --- a/plugins/admin/systems/class_goLogDBServer.inc +++ b/plugins/admin/systems/class_goLogDBServer.inc @@ -76,7 +76,7 @@ class goLogDBServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/goLogDB with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -94,7 +94,7 @@ class goLogDBServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/goLogDB with dn '%s' failed."),$this->dn)); if($this->initially_was_account){ $this->handle_post_events("modify"); }else{ @@ -121,7 +121,7 @@ class goLogDBServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/goLogDB with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc index c76dd9110..337bc9d68 100644 --- a/plugins/admin/systems/class_goMailServer.inc +++ b/plugins/admin/systems/class_goMailServer.inc @@ -509,7 +509,7 @@ class goMailServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/mail with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -577,7 +577,7 @@ class goMailServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/mail with dn '%s' failed."),$this->dn)); if($this->initially_was_account){ $this->handle_post_events("modify"); }else{ @@ -605,7 +605,7 @@ class goMailServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/mail with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goNtpServer.inc b/plugins/admin/systems/class_goNtpServer.inc index 223d2d20f..5be4b74df 100644 --- a/plugins/admin/systems/class_goNtpServer.inc +++ b/plugins/admin/systems/class_goNtpServer.inc @@ -97,7 +97,7 @@ class goNtpServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/goNtpServer with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -119,7 +119,7 @@ class goNtpServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/goNtpServer with dn '%s' failed."),$this->dn)); if($this->initially_was_account){ $this->handle_post_events("modify"); }else{ @@ -146,7 +146,7 @@ class goNtpServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/goNtpServer with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goSyslogServer.inc b/plugins/admin/systems/class_goSyslogServer.inc index da1e8fbf0..cbb56157a 100644 --- a/plugins/admin/systems/class_goSyslogServer.inc +++ b/plugins/admin/systems/class_goSyslogServer.inc @@ -73,7 +73,7 @@ class goSyslogServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/goSysLog with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -91,7 +91,7 @@ class goSyslogServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/goSysLog with dn '%s' failed."),$this->dn)); if($this->initially_was_account){ $this->handle_post_events("modify"); }else{ @@ -118,7 +118,7 @@ class goSyslogServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/goSysLog with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_goTerminalServer.inc b/plugins/admin/systems/class_goTerminalServer.inc index 04fcacc54..235195fef 100644 --- a/plugins/admin/systems/class_goTerminalServer.inc +++ b/plugins/admin/systems/class_goTerminalServer.inc @@ -76,7 +76,7 @@ class goTerminalServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/terminalServer with dn '%s' failed."),$this->dn)); $this->handle_post_events("remove"); } @@ -99,7 +99,7 @@ class goTerminalServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/terminalServer with dn '%s' failed."),$this->dn)); if($this->initially_was_account){ $this->handle_post_events("modify"); }else{ @@ -126,7 +126,7 @@ class goTerminalServer extends plugin{ $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/terminalServer with dn '%s' failed."),$this->dn)); $this->action_hook(); } } diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc index 954de4413..d92998b7e 100644 --- a/plugins/admin/systems/class_servRepository.inc +++ b/plugins/admin/systems/class_servRepository.inc @@ -418,7 +418,7 @@ class servrepository extends plugin $attrs[$flag] = $value; $this->$flag = $value; $ldap->modify($attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/repository with dn '%s' failed."),$this->dn)); $this->action_hook(); } } -- 2.30.2