Ensure ldap parameters are properly escaped
Merge pull request #14944 from cro/ldap_metacharacters6

Ensure ldap characters are properly escaped