Fix LDAP test for case-insensitive databases like MySQL