Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix Kerberos login issue: user can login even account is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jan 17, 2013
1 parent d303546 commit 6a579fa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -160,7 +160,7 @@ public void kerberosLogin()
{
SpNegoIdentity spNegoIdentity = (SpNegoIdentity) Component.getInstance(SpNegoIdentity.class, ScopeType.SESSION);
spNegoIdentity.authenticate();
if (!isNewUser() && !isAuthenticatedAccountWaitingForActivation())
if (!isNewUser() && !isAuthenticatedAccountWaitingForActivation() && isAccountEnabledAndActivated())
{
spNegoIdentity.login();
this.onLoginCompleted(AuthenticationType.KERBEROS);
Expand Down

0 comments on commit 6a579fa

Please sign in to comment.