From: lhm-gosa Date: Wed, 15 Jul 2009 09:17:41 +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=97e1d725bac78c46012e378856ca8b4a886638ae;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@13931 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-core/include/class_config.inc b/trunk/gosa-core/include/class_config.inc index 50171e35c..63672fef9 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 ("(objectClass=goKrbServer)(goKrbRealm=*)(goKrbAdmin=*))"); + $ldap->search ("(&(objectClass=goKrbServer)(goKrbRealm=*)(goKrbAdmin=*))"); if ($ldap->count()){ $attrs= $ldap->fetch(); $this->data['SERVERS']['KERBEROS']= array( 'SERVER' => $attrs['cn'][0],