From 9e6bf25daa117e1ced5fe89dbb154a3d8f305a9f Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 29 May 2007 09:26:39 +0000 Subject: [PATCH] There could be multiple logging server git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6504 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); + } } -- 2.30.2