From c9f2273629cd9e7b821a53038eb3fbf2acd1cd5e Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Sep 2008 11:34:24 +0000 Subject: [PATCH] Updated goSyslogDB Service -Added Database Attribute git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12421 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/services/syslog/class_goLogDBServer.inc | 9 +++++++-- .../admin/systems/services/syslog/goLogDBServer.tpl | 10 +++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/services/syslog/class_goLogDBServer.inc b/gosa-plugins/goto/admin/systems/services/syslog/class_goLogDBServer.inc index 7995688c4..30b970bc6 100644 --- a/gosa-plugins/goto/admin/systems/services/syslog/class_goLogDBServer.inc +++ b/gosa-plugins/goto/admin/systems/services/syslog/class_goLogDBServer.inc @@ -8,7 +8,7 @@ class goLogDBServer extends goService{ /* This plugin only writes its objectClass */ var $objectclasses = array("goLogDBServer"); - var $attributes = array("goLogAdmin", "goLogPassword"); + var $attributes = array("goLogAdmin", "goLogPassword" , "goLogDB"); var $StatusFlag = "goLogDBServerStatus"; /* This class can't be assigned twice so it conflicts with itsself */ @@ -21,6 +21,7 @@ class goLogDBServer extends goService{ var $goLogDBServerStatus = ""; var $goLogAdmin = ""; var $goLogPassword = ""; + var $goLogDB = "gomon"; var $view_logged =FALSE; @@ -70,6 +71,9 @@ class goLogDBServer extends goService{ if (empty($this->goLogPassword)){ $message[]= msgPool::required(_("Password")); } + if (empty($this->goLogDB)){ + $message[]= msgPool::required(_("Database")); + } return($message); } @@ -98,7 +102,8 @@ class goLogDBServer extends goService{ "stop" => _("Stop"), "restart" => _("Restart"), "goLogAdmin" => _("Admin"), - "goLogPassword" => _("Password")) + "goLogPassword" => _("Password"), + "goLogDB" => _("Database")) )); } } diff --git a/gosa-plugins/goto/admin/systems/services/syslog/goLogDBServer.tpl b/gosa-plugins/goto/admin/systems/services/syslog/goLogDBServer.tpl index aaab10ade..b372fe64d 100644 --- a/gosa-plugins/goto/admin/systems/services/syslog/goLogDBServer.tpl +++ b/gosa-plugins/goto/admin/systems/services/syslog/goLogDBServer.tpl @@ -5,6 +5,14 @@ {render acl=$goLogAdminACL} +{/render} + + + + {t}Database{/t}{$must} + +{render acl=$goLogDBACL} + {/render} @@ -12,7 +20,7 @@ {t}Password{/t}{$must} {render acl=$goLogPasswordACL} - + {/render} -- 2.30.2