Fix ACT-1794 LDAP group lookups with user DN containing special chars

LDAP Group lookups fail if user distinguishedName attribute contains special characters. This can occur if CN attribute in AD is in the format "Lastname,Firstname". I ran into this problem when integrating with AD and noticed that there is an open Jira ticket for this issue.