Added case sensitive checking for username. LDAP is always case insensitive.