userdb: changed login API to return the logged-in username on success; usernames are now case insensitiv on ldap login