Fix LDAP test for case-insensitive databases like MySQL
Merge pull request #836 from mposolda/master

Fix LDAP test for case-insensitive databases like MySQL