From: hickert Date: Tue, 29 May 2007 09:26:39 +0000 (+0000) Subject: There could be multiple logging server X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9e6bf25daa117e1ced5fe89dbb154a3d8f305a9f;p=gosa.git There could be multiple logging server git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6504 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_config.inc b/include/class_config.inc index ca4d376ec..a7d3a53b6 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -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]); + } }