From a8dd9730038f42b34d02c969252df84602ab48a4 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 19 Apr 2006 12:12:30 +0000 Subject: [PATCH] Added normalizeLdap, to ensure a valid search filter git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3066 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/class_userManagement.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2