MDL-15799 LDAP - user data mapping doesn't work. Merged from MOODLE_18_STABLE
MDL-15799 LDAP - user data mapping doesn't work. Merged from MOODLE_18_STABLE

The Right Way(tm) to write a LDAP filter is enclosing it in parentheses (see
RFC 4515/2254).

dilawar/moodle