From: lhm-gosa Date: Wed, 15 Jul 2009 09:12:43 +0000 (+0000) Subject: Optimize LDAP searchfilter. The LDAP-Performance-Warning after Gosa-Login doesn't... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b3e12db7e712ddb6248483e1b5db1785089b855e;p=gosa.git 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 --- 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],