-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended Distinction between IBM JRE and Others #168
Conversation
The JAAS property useTicketCache is not known to IBM JRE, instead the property useDefaultCcache [sic!] is used.
Extended Distinction between IBM JRE and Others
Thanks! |
options.put("refreshKrb5Config", "true"); | ||
|
||
if (JavaVendor.isIBM()) { | ||
options.put("credsType", "initiator"); | ||
|
||
if (ticketCache) { | ||
options.put("useDefaultCcache", "true"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to write two c's there? According to this document the property is called useDefaultCache
, with a single c instead of Cc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I did mean useDefaultCcache
. We found the distinction in this IBM document.
Good catch @vpartington. Dammit, that teaches me for pressing the merge button too soon. Totally missed the spelling mistake ;) |
} else { | ||
options.put("client", "true"); | ||
options.put("useKeyTab", "false"); | ||
options.put("doNotPrompt", "false"); | ||
|
||
if (ticketCache) { | ||
options.put("useTicketCache", "true"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code can be simplified as follows:
options.put("useTicketCache", ticketCache.toString())
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion, that's a good idea.
The JAAS property useTicketCache is not known to IBM JRE, instead the
property useDefaultCcache [sic!] is used.