From: hickert Date: Thu, 17 Dec 2009 17:46:07 +0000 (+0000) Subject: Updated rsyslog stuff X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=64ad914bb71ad92d9e89e15ac2d296c105f6c3a0;p=gosa.git Updated rsyslog stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14907 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc index 6e8b25d0c..1f7bd8a59 100644 --- a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc +++ b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc @@ -5,15 +5,29 @@ class rsyslog extends plugin var $plHeadline= "rSyslog"; var $plDescription= "View system logs"; - function gosa_logview (&$config, $dn= NULL) + var $servers = array(); + + function rsyslog (&$config, $dn= NULL) { $this->config= &$config; $this->ui = get_userinfo(); + + $ldap = $this->config->get_ldap_link(); + $ldap->cd($this->config->current['BASE']); + $ldap->search("objectClass=rSyslogServer",array("rSyslogUser","rSyslogDatabase","rSyslogPassword")); + while($attrs = $ldap->fetch()){ + $this->servers[] = $attrs; + } } function execute() { $smarty = get_smarty(); + $ui = get_userinfo(); + foreach($this->servers as $server){ + echo "".$server['dn']."
"; + echo $ui->get_permissions($server['dn'], 'server/rsyslog','viewEntries')."
"; + } return($smarty->fetch(get_template_path("rSyslog.tpl", TRUE))); } diff --git a/gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl b/gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl index e69de29bb..8bd6648ed 100644 --- a/gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl +++ b/gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl @@ -0,0 +1 @@ +asdf