Kerberos SSO Update

When going back from SSO to database mode, SSO was still
being attempted. Code was looking at the wrong configuration
variable for authentication mode.
Merge pull request #747 from abellotti/single_signon_update

Kerberos SSO Update