Fix quoting of query for user_ldap ref #1983
Merge pull request #2033 from eMerzh/fix_ldap_quoting

Fix quoting of query for user_ldap ref #1983