Code

There could be multiple logging server
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 May 2007 09:26:39 +0000 (09:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 May 2007 09:26:39 +0000 (09:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6504 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index ca4d376ec23c2d8d3952965ff5620519e3dc2754..a7d3a53b6a0e17e7001f2bde8a2ab0560a667325 100644 (file)
@@ -437,13 +437,14 @@ class config  {
     $ldap->cd ($this->current['BASE']);
     $ldap->search ("(objectClass=gosaLogServer)");
     if ($ldap->count()){
-      $attrs= $ldap->fetch();
+      while($attrs= $ldap->fetch()){
       $this->data['SERVERS']['LOGGING'][$attrs['cn'][0]]= 
           array(
           'DN'    => $attrs['dn'],
           'USER'  => $attrs['goLogDBUser'][0],
           'DB'    => $attrs['goLogDB'][0],
           'PWD'   => $attrs['goLogDBPassword'][0]);
+      }
     }