From f8608a1b20b61784f73f96912b17ff05b274dd7c Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 28 Dec 2009 13:52:07 +0000 Subject: [PATCH] Updated rSyslog addon - we do not use a new objectClass, we use the old one git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14961 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../rsyslog/addons/rsyslog/class_rsyslog.inc | 8 +++---- .../services/rsyslog/class_rSyslogServer.inc | 24 +++++++++---------- .../services/rsyslog/rSyslogServer.tpl | 12 +++++----- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc index 4f51dfe7d..5f92a45a2 100644 --- a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc +++ b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc @@ -32,16 +32,16 @@ class rsyslog extends plugin // Get list of rsyslog servers $ldap = $this->config->get_ldap_link(); $ldap->cd($this->config->current['BASE']); - $ldap->search("objectClass=rSyslogServer",array("cn","rSyslogUser","rSyslogDatabase","rSyslogPassword")); + $ldap->search("objectClass=gosaLogServer",array("cn","goLogDBUser","goLogDB","goLogDBPassword")); while($attrs = $ldap->fetch()){ if(empty($this->selected_server)) $this->selected_server = $attrs['cn'][0]; $s = array('cn' => $attrs['cn'][0], 'dn' => $attrs['dn'], 'Password' => '', 'status' => 'ok'); - $s['User'] = $attrs['rSyslogUser'][0]; - $s['Database'] = $attrs['rSyslogDatabase'][0]; + $s['User'] = $attrs['goLogDBUser'][0]; + $s['Database'] = $attrs['goLogDB'][0]; $s['Hosts'] = array(); $s['Priorities'] = array(); $s['ACL'] = ""; - if(isset($attrs['rSyslogPassword'])) $s['Password'] = $attrs['rSyslogPassword'][0]; + if(isset($attrs['goLogDBPassword'])) $s['Password'] = $attrs['goLogDBPassword'][0]; $this->servers[$attrs['cn'][0]] = $s; } diff --git a/gosa-plugins/rsyslog/admin/systems/services/rsyslog/class_rSyslogServer.inc b/gosa-plugins/rsyslog/admin/systems/services/rsyslog/class_rSyslogServer.inc index df263902c..c8bb4132a 100644 --- a/gosa-plugins/rsyslog/admin/systems/services/rsyslog/class_rSyslogServer.inc +++ b/gosa-plugins/rsyslog/admin/systems/services/rsyslog/class_rSyslogServer.inc @@ -3,20 +3,20 @@ class rSyslogServer extends goService{ /* This plugin only writes its objectClass */ - var $objectclasses = array("rSyslogServer"); - var $attributes = array("rSyslogDatabase","rSyslogUser","rSyslogPassword"); + var $objectclasses = array("gosaLogServer"); + var $attributes = array("goLogDB","goLogDBUser","goLogDBPassword"); var $StatusFlag = ""; /* This class can't be assigned twice so it conflicts with itsself */ - var $conflicts = array("rSyslogServer"); + var $conflicts = array("gosaLogServer"); var $DisplayName = ""; var $dn = NULL; var $acl; var $cn = ""; - var $rSyslogDatabase = "Syslog"; - var $rSyslogUser = "rsyslog"; - var $rSyslogPassword = ""; + var $goLogDB = "Syslog"; + var $goLogDBUser = "rsyslog"; + var $goLogDBPassword = ""; var $view_logged =FALSE; @@ -63,13 +63,13 @@ class rSyslogServer extends goService{ function check() { $message = plugin::check(); - if (empty($this->rSyslogUser)){ + if (empty($this->goLogDBUser)){ $message[]= msgPool::required(_("User")); } - if (empty($this->rSyslogPassword)){ + if (empty($this->goLogDBPassword)){ $message[]= msgPool::required(_("Password")); } - if (empty($this->rSyslogDatabase)){ + if (empty($this->goLogDB)){ $message[]= msgPool::required(_("Database")); } return($message); @@ -96,9 +96,9 @@ class rSyslogServer extends goService{ "plCategory" => array("server"), "plProvidedAcls"=> array( - "rSyslogDatabase" => _("Database"), - "rSyslogUser" => _("User"), - "rSyslogPassword" => _("Password"), + "goLogDB" => _("Database"), + "goLogDBUser" => _("User"), + "goLogDBPassword" => _("Password"), "viewEntries" => _("Allow view of entries on this server")) )); } diff --git a/gosa-plugins/rsyslog/admin/systems/services/rsyslog/rSyslogServer.tpl b/gosa-plugins/rsyslog/admin/systems/services/rsyslog/rSyslogServer.tpl index b4f1c4679..194e14e70 100644 --- a/gosa-plugins/rsyslog/admin/systems/services/rsyslog/rSyslogServer.tpl +++ b/gosa-plugins/rsyslog/admin/systems/services/rsyslog/rSyslogServer.tpl @@ -3,24 +3,24 @@ {t}Database{/t}{$must} -{render acl=$rSyslogDatabaseACL} - +{render acl=$goLogDBACL} + {/render} {t}Database user{/t}{$must} -{render acl=$rSyslogUserACL} - +{render acl=$goLogDBUserACL} + {/render} {t}Password{/t}{$must} -{render acl=$rSyslogPasswordACL} - +{render acl=$goLogDBPasswordACL} + {/render} -- 2.30.2