Kerberos SSO authentication

Implements basic kerberos SSO authentication.
The easiest thing might be to move this test from check-login to check-realms.