Allow login by email through LDAP

that won't work, as you need a DN for the lookup. But the query 
> (&(objectclass=user)(" + emailAttr + "=" + email + ")) 

could be made more generic. It could even work with the CN, I'll give it a try ..