United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7201053 Krb5LoginModule shows NPE when both useTicketCache and storeKey are set to true
JDK-7201053 : Krb5LoginModule shows NPE when both useTicketCache and storeKey are set to true

Details
Type:
Bug
Submit Date:
2012-09-26
Status:
Closed
Updated Date:
2014-02-05
Project Name:
JDK
Resolved Date:
2012-10-08
Component:
security-libs
OS:
generic
Sub-Component:
java.security
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

Description
useTicketCache normally used in the intiator side, and storeKey on the acceptor side. When both are set to true, and a valid TGT is found inside the cache, no password or keytab will be required, and therefore no key to store.

This combination is useless and should have been set to illegal. However, some customers simply set a lot of arguments to true and this will actually work if password or key is used. We don't want to break their programs.

For this case, when there is no key but storeKey is true, a proper LoginException should be thrown. This is also consistent with the JDK 6 behavior.

                                    

Comments
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/92f3a96f3c78
User:  weijun
Date:  2012-10-08 02:44:17 +0000

                                     
2012-10-08
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/92f3a96f3c78
User:  lana
Date:  2012-10-12 18:08:25 +0000

                                     
2012-10-12



Hardware and Software, Engineered to Work Together