From: hickert Date: Mon, 14 May 2007 12:14:10 +0000 (+0000) Subject: Updated Log DB service X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e8cd716d5a82da706a6530d81b653bd204c4f0b9;p=gosa.git Updated Log DB service git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6368 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_goLogDBServer.inc b/plugins/admin/systems/class_goLogDBServer.inc index 31ad8e8dc..e091c1c1e 100644 --- a/plugins/admin/systems/class_goLogDBServer.inc +++ b/plugins/admin/systems/class_goLogDBServer.inc @@ -9,7 +9,7 @@ class goLogDBServer extends goService{ /* This plugin only writes its objectClass */ var $objectclasses = array("goLogDBServer"); - var $attributes = array("goLogAdmin", "goLogPassword"); + var $attributes = array("goLogDBServerUser", "goLogDBServerPassword", "goLogDB" ); var $StatusFlag = "goLogDBServerStatus"; /* This class can't be assigned twice so it conflicts with itsself */ @@ -20,8 +20,9 @@ class goLogDBServer extends goService{ var $acl; var $cn = ""; var $goLogDBServerStatus = ""; - var $goLogAdmin = ""; - var $goLogPassword = ""; + var $goLogDBServerUser = ""; + var $goLogDBServerPassword= ""; + var $goLogDB = "gosa_log"; function goLogDBServer($config,$dn) @@ -59,12 +60,15 @@ class goLogDBServer extends goService{ function check() { $message = plugin::check(); - if (empty($this->goLogAdmin)){ + if (empty($this->goLogDBServerUser)){ $message[]= sprintf_("The attribute user is empty or contains invalid characters."); } - if (empty($this->goLogPassword)){ + if (empty($this->goLogDBServerPassword)){ $message[]= sprintf_("The attribute password is empty or contains invalid characters."); } + if (empty($this->goLogDB)){ + $message[]= sprintf_("The attribute database is empty or contains invalid characters."); + } return($message); } @@ -92,8 +96,9 @@ class goLogDBServer extends goService{ "start" => _("Start"), "stop" => _("Stop"), "restart" => _("Restart"), - "goLogAdmin" => _("Admin"), - "goLogPassword" => _("Password")) + "goLogDBServerUser" => _("User"), + "goLogDBServerPassword" => _("Password"), + "goLogDB" => _("Database")) )); } } diff --git a/plugins/admin/systems/goLogDBServer.tpl b/plugins/admin/systems/goLogDBServer.tpl index 839507029..a16d6f1c6 100644 --- a/plugins/admin/systems/goLogDBServer.tpl +++ b/plugins/admin/systems/goLogDBServer.tpl @@ -3,16 +3,24 @@ {t}Logging DB user{/t}{$must} -{render acl=$goLogAdminACL} - +{render acl=$goLogDBServerUserACL} + {/render} {t}Password{/t}{$must} -{render acl=$goLogPasswordACL} - +{render acl=$goLogDBServerPasswordACL} + +{/render} + + + + {t}Database{/t}{$must} + +{render acl=$goLogDBACL} + {/render}