From 9475e5c2269147845692dfc3ce121ad623f7befd Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Nov 2008 15:01:23 +0000 Subject: [PATCH] Updated LDAP server array. -Add 'dn' to list of LDAP server, to be able to check acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12877 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 0a51ba772..85a5d88a5 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -585,16 +585,13 @@ class config { } } - /* Ldap Server */ + /* Ldap Server + */ $this->data['SERVERS']['LDAP']= array(); $ldap->cd ($this->current['BASE']); - $ldap->search ("(objectClass=goLdapServer)"); + $ldap->search ("(&(objectClass=goLdapServer)(goLdapBase=*))"); while ($attrs= $ldap->fetch()){ - if (isset($attrs["goLdapBase"])){ - for ($i= 0; $i<$attrs["goLdapBase"]["count"]; $i++){ - $this->data['SERVERS']['LDAP'][]= $attrs["cn"][0].":".$attrs["goLdapBase"][$i]; - } - } + $this->data['SERVERS']['LDAP'][$attrs['dn']] = $attrs; } /* Get misc server lists */ -- 2.30.2