From 0186b319565faa48818dedeb906e1a69ff60d25c Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 8 Mar 2010 07:18:43 +0000 Subject: [PATCH] Updated rSyslog ACLs - works but there is still a little glitch -Can still see all systems with only having acl to server/rSyslogServer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16321 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/contrib/gosa.conf | 2 +- gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc | 2 +- .../admin/systems/services/rsyslog/class_rSyslogServer.inc | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gosa-core/contrib/gosa.conf b/gosa-core/contrib/gosa.conf index 9226d8483..a57f6c5c3 100644 --- a/gosa-core/contrib/gosa.conf +++ b/gosa-core/contrib/gosa.conf @@ -72,7 +72,7 @@
- + diff --git a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc index 6d469d222..134746296 100644 --- a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc +++ b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc @@ -69,7 +69,7 @@ class rsyslog extends plugin $this->servers[$name]['error'] = ""; // Detect ACLs - $this->servers[$name]['ACL'] = $ui->get_permissions($server['dn'], 'server/rsyslog','viewEntries'); + $this->servers[$name]['ACL'] = $ui->get_permissions($server['dn'], 'server/rSyslogServer','viewEntries'); // Get list of Hosts using this log server.. if(preg_match('/r/', $this->servers[$name]['ACL'])){ 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 a69b21f8e..282dc357c 100644 --- a/gosa-plugins/rsyslog/admin/systems/services/rsyslog/class_rSyslogServer.inc +++ b/gosa-plugins/rsyslog/admin/systems/services/rsyslog/class_rSyslogServer.inc @@ -27,7 +27,8 @@ class rSyslogServer extends goService{ { goService::goService($config,$dn); $this->DisplayName = _("Logging"); - $this->initial_use_database = $this->use_database = isset($this->attrs['objectClass']) &&in_array("goLogDBServer", $this->attrs['objectClass']); + $this->initial_use_database = $this->use_database = + isset($this->attrs['objectClass']) &&in_array("goLogDBServer", $this->attrs['objectClass']); if($this->use_database){ foreach($this->db_attributes as $attr){ -- 2.30.2