From 310b6c9b94b9415af5e878bec726728d88fdc2a1 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 29 Dec 2009 09:55:01 +0000 Subject: [PATCH] Updated rSyslogPlugin to use the correct schemata - git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14972 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 5f92a45a2..696503ec1 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=gosaLogServer",array("cn","goLogDBUser","goLogDB","goLogDBPassword")); + $ldap->search("objectClass=goLogDBServer",array("cn","goLogAdmin","gosaLogDB","goLogPassword")); 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['goLogDBUser'][0]; - $s['Database'] = $attrs['goLogDB'][0]; + $s['User'] = $attrs['goLogAdmin'][0]; + $s['Database'] = $attrs['gosaLogDB'][0]; $s['Hosts'] = array(); $s['Priorities'] = array(); $s['ACL'] = ""; - if(isset($attrs['goLogDBPassword'])) $s['Password'] = $attrs['goLogDBPassword'][0]; + if(isset($attrs['goLogPassword'])) $s['Password'] = $attrs['goLogPassword'][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 c8bb4132a..920461142 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("gosaLogServer"); - var $attributes = array("goLogDB","goLogDBUser","goLogDBPassword"); + var $objectclasses = array("goLogDBServer"); + var $attributes = array("gosaLogDB","goLogAdmin","goLogPassword"); var $StatusFlag = ""; /* This class can't be assigned twice so it conflicts with itsself */ - var $conflicts = array("gosaLogServer"); + var $conflicts = array("goLogDBServer"); var $DisplayName = ""; var $dn = NULL; var $acl; var $cn = ""; - var $goLogDB = "Syslog"; - var $goLogDBUser = "rsyslog"; - var $goLogDBPassword = ""; + var $gosaLogDB = "Syslog"; + var $goLogAdmin = "rsyslog"; + var $goLogPassword = ""; var $view_logged =FALSE; @@ -63,13 +63,13 @@ class rSyslogServer extends goService{ function check() { $message = plugin::check(); - if (empty($this->goLogDBUser)){ + if (empty($this->goLogAdmin)){ $message[]= msgPool::required(_("User")); } - if (empty($this->goLogDBPassword)){ + if (empty($this->goLogPassword)){ $message[]= msgPool::required(_("Password")); } - if (empty($this->goLogDB)){ + if (empty($this->gosaLogDB)){ $message[]= msgPool::required(_("Database")); } return($message); @@ -96,9 +96,9 @@ class rSyslogServer extends goService{ "plCategory" => array("server"), "plProvidedAcls"=> array( - "goLogDB" => _("Database"), - "goLogDBUser" => _("User"), - "goLogDBPassword" => _("Password"), + "gosaLogDB" => _("Database"), + "goLogAdmin" => _("User"), + "goLogPassword" => _("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 194e14e70..aaa903d80 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=$goLogDBACL} - +{render acl=$gosaLogDBACL} + {/render} {t}Database user{/t}{$must} -{render acl=$goLogDBUserACL} - +{render acl=$goLogAdminACL} + {/render} {t}Password{/t}{$must} -{render acl=$goLogDBPasswordACL} - +{render acl=$goLogPasswordACL} + {/render} -- 2.30.2