Code

Updated config.inc to support new logging db settings
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 May 2007 12:17:28 +0000 (12:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 May 2007 12:17:28 +0000 (12:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6369 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index 5f3d8ceb56b0c281fe144fbd073d6a04109b6c5d..7ef00cb6c44ed0147f48022ff48ab5fd674ce3c4 100644 (file)
@@ -423,28 +423,15 @@ class config  {
 
     /* Get logdb server */
     $ldap->cd ($this->current['BASE']);
-    $ldap->search ("(objectClass=goLogDBServer)");
+    $ldap->search ("(objectClass=goLogDBServer)",array("cn","goLogDBServerUser","goLogDBServerPassword","goLogDB"));
     if ($ldap->count()){
       $attrs= $ldap->fetch();
-      $this->data['SERVERS']['LOG']= array( 'SERVER' => $attrs['cn'][0],
-          'LOGIN' => $attrs['goLogAdmin'][0],
-          'PASSWORD' => $attrs['goLogPassword'][0]);
+      $this->data['SERVERS']['LOGGING'][$attrs['cn'][0]]= 
+          array('USER'    => $attrs['goLogDBServerUser'][0],
+          'PWD'     => $attrs['goLogDBServerPassword'][0],
+          'DB'      => $attrs['goLogDB'][0]);
     }
 
-    /* Logging databases */
-    $this->data['SERVERS']['LOGGING']= 
-      array("testserver1" => 
-        array(
-              "SERVER"  => "localhost",
-              "USER"    => "gosa_log",
-              "PWD"     => "tester",
-              "DB"      => "gosa_log"
-             )
-           );
-
-
-
-
     /* Get NFS server lists */
     $tmp= array("default");
     $ldap->cd ($this->current['BASE']);