Kerberos SSO authentication

Implements basic kerberos SSO authentication.
Thanks. fixed.