Code

Updated config.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Sep 2008 11:43:05 +0000 (11:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Sep 2008 11:43:05 +0000 (11:43 +0000)
-Prepared config to support logging DB name.

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

gosa-core/include/class_config.inc

index 9b789f7d304de1b0e285d3597b3bd0c2ea8c11a2..ddc26fcf35dd01229e1386554c784406d2402f1f 100644 (file)
@@ -523,8 +523,12 @@ class config  {
     $ldap->search ("(objectClass=goLogDBServer)");
     if ($ldap->count()){
       $attrs= $ldap->fetch();
+      if(!isset($attrs['goLogDB'][0])){
+        $attrs['goLogDB'][0] = "gomon";
+      }
       $this->data['SERVERS']['LOG']= array( 'SERVER' => $attrs['cn'][0],
           'LOGIN' => $attrs['goLogAdmin'][0],
+          'DB' => $attrs['goLogDB'][0],
           'PASSWORD' => $attrs['goLogPassword'][0]);
     }