6716534: Krb5LoginModule has not cleaned temp info between authentication attempts

Reviewed-by: valeriep
This commit is contained in:
Weijun Wang 2008-06-20 12:05:02 +08:00
parent f44f03f9ea
commit 5e1c37cd11

@ -1,5 +1,5 @@
/*
* Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -1145,6 +1145,10 @@ public class Krb5LoginModule implements LoginModule {
sharedState.put(NAME, username);
sharedState.put(PWD, password);
}
} else {
// remove temp results for the next try
encKeys = null;
principal = null;
}
username = null;
password = null;