From: hickert Date: Wed, 19 Apr 2006 12:12:30 +0000 (+0000) Subject: Added normalizeLdap, to ensure a valid search filter X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a8dd9730038f42b34d02c969252df84602ab48a4;p=gosa.git Added normalizeLdap, to ensure a valid search filter git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3066 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index bf4b922ab..3c508c13a 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -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);