Code

Updated Log DB service
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 May 2007 12:14:10 +0000 (12:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 May 2007 12:14:10 +0000 (12:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6368 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_goLogDBServer.inc
plugins/admin/systems/goLogDBServer.tpl

index 31ad8e8dc5f4246fe1f47eb21dff888a5c25995c..e091c1c1ea4086bbb240f10ac177f1bf28edd98d 100644 (file)
@@ -9,7 +9,7 @@ class goLogDBServer extends goService{
 
   /* This plugin only writes its objectClass */
   var $objectclasses    = array("goLogDBServer");
-  var $attributes       = array("goLogAdmin", "goLogPassword");
+  var $attributes       = array("goLogDBServerUser", "goLogDBServerPassword", "goLogDB" );
   var $StatusFlag       = "goLogDBServerStatus";
 
   /* This class can't be assigned twice so it conflicts with itsself */
@@ -20,8 +20,9 @@ class goLogDBServer extends goService{
   var $acl;
   var $cn                   = "";
   var $goLogDBServerStatus  = "";
-  var $goLogAdmin           = "";
-  var $goLogPassword        = "";  
+  var $goLogDBServerUser   = "";
+  var $goLogDBServerPassword= "";  
+  var $goLogDB              = "gosa_log";  
 
 
   function goLogDBServer($config,$dn)
@@ -59,12 +60,15 @@ class goLogDBServer extends goService{
   function check()
   { 
     $message = plugin::check();
-    if (empty($this->goLogAdmin)){
+    if (empty($this->goLogDBServerUser)){
       $message[]= sprintf_("The attribute user is empty or contains invalid characters.");
     }
-    if (empty($this->goLogPassword)){
+    if (empty($this->goLogDBServerPassword)){
       $message[]= sprintf_("The attribute password is empty or contains invalid characters.");
     }
+    if (empty($this->goLogDB)){
+      $message[]= sprintf_("The attribute database is empty or contains invalid characters.");
+    }
     return($message);
   }
 
@@ -92,8 +96,9 @@ class goLogDBServer extends goService{
             "start"         => _("Start"),
             "stop"          => _("Stop"),
             "restart"       => _("Restart"),
-            "goLogAdmin"    => _("Admin"),
-            "goLogPassword" => _("Password"))
+            "goLogDBServerUser"    => _("User"),
+            "goLogDBServerPassword" => _("Password"),
+            "goLogDB"       => _("Database"))
           ));
   }
 }
index 8395070295b3b24ce6a52e29ae15fe51645928f5..a16d6f1c6ded1da4e69a4b6966ffc348df44ce66 100644 (file)
@@ -3,16 +3,24 @@
     <tr>
      <td>{t}Logging DB user{/t}{$must}</td>
      <td>
-{render acl=$goLogAdminACL}
-       <input name="goLogAdmin" id="goLogAdmin" size=30 maxlength=60 value="{$goLogAdmin}">
+{render acl=$goLogDBServerUserACL}
+       <input name="goLogDBServerUser" id="goLogDBServerUser" size=30 maxlength=60 value="{$goLogDBServerUser}">
 {/render}
      </td>
     </tr>
     <tr>
      <td>{t}Password{/t}{$must}</td>
      <td>
-{render acl=$goLogPasswordACL}
-       <input type=password name="goLogPassword" id="goLogPassword" size=30 maxlength=60 value="{$goLogPassword}">
+{render acl=$goLogDBServerPasswordACL}
+       <input type="password" name="goLogDBServerPassword" id="goLogDBServerPassword" size=30 maxlength=60 value="{$goLogDBServerPassword}">
+{/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>