Try to login with the username and only generate dn if that fails