From b3e12db7e712ddb6248483e1b5db1785089b855e Mon Sep 17 00:00:00 2001 From: lhm-gosa Date: Wed, 15 Jul 2009 09:12:43 +0000 Subject: [PATCH] Optimize LDAP searchfilter. The LDAP-Performance-Warning after Gosa-Login doesn't appear anymore. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13930 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-core/include/class_config.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/gosa-core/include/class_config.inc b/trunk/gosa-core/include/class_config.inc index 667cc1abf..50171e35c 100644 --- a/trunk/gosa-core/include/class_config.inc +++ b/trunk/gosa-core/include/class_config.inc @@ -436,7 +436,7 @@ class config { /* Get kerberos server. FIXME: only one is supported currently */ $ldap->cd ($this->current['BASE']); - $ldap->search ("(&(goKrbRealm=*)(goKrbAdmin=*)(objectClass=goKrbServer))"); + $ldap->search ("(objectClass=goKrbServer)(goKrbRealm=*)(goKrbAdmin=*))"); if ($ldap->count()){ $attrs= $ldap->fetch(); $this->data['SERVERS']['KERBEROS']= array( 'SERVER' => $attrs['cn'][0], -- 2.30.2