Code

Optimize LDAP searchfilter. The LDAP-Performance-Warning after Gosa-Login doesn't...
authorlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Jul 2009 09:17:41 +0000 (09:17 +0000)
committerlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Jul 2009 09:17:41 +0000 (09:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13931 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-core/include/class_config.inc

index 50171e35c88119754746e1387c85359887ae11a1..63672fef9fa99f672aecf35d56dcef325a920b88 100644 (file)
@@ -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],