summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d0520e)
raw | patch | inline | side by side (parent: 8d0520e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 17 Dec 2009 17:46:07 +0000 (17:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 17 Dec 2009 17:46:07 +0000 (17:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14907 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc | patch | blob | history | |
gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl | patch | blob | history |
diff --git a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc
index 6e8b25d0c1637adf965f752aa6ddc692b7b89ea6..1f7bd8a59468d8136530db6c444bf96d381a649f 100644 (file)
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 "<b>".$server['dn']."</b><br>";
+ echo $ui->get_permissions($server['dn'], 'server/rsyslog','viewEntries')."<br>";
+ }
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 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..8bd6648ed130ac9ece0f89cd9a8fbbfd2608427a 100644 (file)
+asdf