summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-03-05 14:33:20 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-03-05 14:33:20 +0100
commit055fadd10dcbe0b7cd87eb85d77cfd515e2c71cf (patch)
tree9c26aef171b5c38a946d4620c321a04350315c2b /apps/user_ldap
parentb08894ba7727f9bce8d0e41d76ad5d2ae4a3b7e3 (diff)
downloadnextcloud-server-055fadd10dcbe0b7cd87eb85d77cfd515e2c71cf.tar.gz
nextcloud-server-055fadd10dcbe0b7cd87eb85d77cfd515e2c71cf.zip
LDAP: escape some more chars for proper search filter, fixes #1673
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/access.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index d409591283c..a8cfd45bf4d 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -144,6 +144,9 @@ abstract class Access {
'\;' => '\5c3B',
'\"' => '\5c22',
'\#' => '\5c23',
+ '(' => '\28',
+ ')' => '\29',
+ '*' => '\2A',
);
$dn = str_replace(array_keys($replacements), array_values($replacements), $dn);