Code

Updated goSyslogDB Service
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Sep 2008 11:34:24 +0000 (11:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Sep 2008 11:34:24 +0000 (11:34 +0000)
-Added Database Attribute

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12421 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/services/syslog/class_goLogDBServer.inc
gosa-plugins/goto/admin/systems/services/syslog/goLogDBServer.tpl

index 7995688c42e9ccdaeffed2f179c20c62948ee969..30b970bc6970a15be9840aa3a14c4b6264baa509 100644 (file)
@@ -8,7 +8,7 @@ class goLogDBServer extends goService{
 
   /* This plugin only writes its objectClass */
   var $objectclasses    = array("goLogDBServer");
-  var $attributes       = array("goLogAdmin", "goLogPassword");
+  var $attributes       = array("goLogAdmin", "goLogPassword" , "goLogDB");
   var $StatusFlag       = "goLogDBServerStatus";
 
   /* This class can't be assigned twice so it conflicts with itsself */
@@ -21,6 +21,7 @@ class goLogDBServer extends goService{
   var $goLogDBServerStatus  = "";
   var $goLogAdmin           = "";
   var $goLogPassword        = "";  
+  var $goLogDB              = "gomon";  
   var $view_logged  =FALSE;
 
 
@@ -70,6 +71,9 @@ class goLogDBServer extends goService{
     if (empty($this->goLogPassword)){
       $message[]= msgPool::required(_("Password"));
     }
+    if (empty($this->goLogDB)){
+      $message[]= msgPool::required(_("Database"));
+    }
     return($message);
   }
 
@@ -98,7 +102,8 @@ class goLogDBServer extends goService{
             "stop"          => _("Stop"),
             "restart"       => _("Restart"),
             "goLogAdmin"    => _("Admin"),
-            "goLogPassword" => _("Password"))
+            "goLogPassword" => _("Password"),
+            "goLogDB"       => _("Database"))
           ));
   }
 }
index aaab10ade3bf9ba91f271bd80e622a76162a79fb..b372fe64d0ac7edc8fa00fd5f37f291e81b29746 100644 (file)
@@ -5,6 +5,14 @@
      <td>
 {render acl=$goLogAdminACL}
        <input name="goLogAdmin" id="goLogAdmin" size=30 maxlength=60 value="{$goLogAdmin}">
+{/render}
+     </td>
+    </tr>
+    <tr>
+     <td>{t}Database{/t}{$must}</td>
+     <td>
+{render acl=$goLogDBACL}
+       <input type="text" name="goLogDB" id="goLogDB" size=30 maxlength=60 value="{$goLogDB}">
 {/render}
      </td>
     </tr>
@@ -12,7 +20,7 @@
      <td>{t}Password{/t}{$must}</td>
      <td>
 {render acl=$goLogPasswordACL}
-       <input type=password name="goLogPassword" id="goLogPassword" size=30 maxlength=60 value="{$goLogPassword}">
+       <input type="password" name="goLogPassword" id="goLogPassword" size=30 maxlength=60 value="{$goLogPassword}">
 {/render}
      </td>
     </tr>