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:12:43 +0000 (09:12 +0000)
committerlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Jul 2009 09:12:43 +0000 (09:12 +0000)
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

index 667cc1abf79479fa3ddb39fdf75101eac8e202c4..50171e35c88119754746e1387c85359887ae11a1 100644 (file)
@@ -436,7 +436,7 @@ class config  {
 
     /* Get kerberos server. FIXME: only one is supported currently */
     $ldap->cd ($this->current['BASE']);
 
     /* 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],
     if ($ldap->count()){
       $attrs= $ldap->fetch();
       $this->data['SERVERS']['KERBEROS']= array( 'SERVER' => $attrs['cn'][0],