diff --git a/inc/ldap.class.php b/inc/ldap.class.php index 9a61bf78..c8c50c14 100644 --- a/inc/ldap.class.php +++ b/inc/ldap.class.php @@ -395,7 +395,7 @@ class SP_LDAP */ private static function escapeLdapDN($dn) { - $chars = array('/(,)(?!cn|ou|dc)/', '/(?)/', '/(<)/', '/(\+)/', '/(#)/', '/\G(\s)/', '/(\s)(?=\s*$)/', '/(\/)/'); + $chars = array('/(,)(?!uid|cn|ou|dc)/', '/(?)/', '/(<)/', '/(\+)/', '/(#)/', '/\G(\s)/', '/(\s)(?=\s*$)/', '/(\/)/'); return preg_replace($chars, '\\\$1', $dn); } }