Adding a method to retrieve the login name (the attribute used for logins) so it could be used in Sentry.

Signed-off-by: Ben Corlett <bencorlett@me.com>