Code

Added normalizeLdap, to ensure a valid search filter
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Apr 2006 12:12:30 +0000 (12:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Apr 2006 12:12:30 +0000 (12:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3066 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/class_userManagement.inc

index bf4b922ab47b4674d6ed92e231bb14066f1ea558..3c508c13ab80b11cf5292781511a6583b2bf7de0 100644 (file)
@@ -1080,7 +1080,7 @@ class userManagement extends plugin
     } else {
       $filter= "(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(|$filter))";
     }
-    $filter= "(&(|(uid=".$regex.")(sn=".$regex.")(givenName=".$regex."))$filter)";
+    $filter= "(&(|(uid=".normalizeLdap($regex).")(sn=".normalizeLdap($regex).")(givenName=".normalizeLdap($regex)."))$filter)";
 
     /* Generate userlist */
     $ldap= $this->config->get_ldap_link(TRUE);