Skip to content
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

Merged
merged 1 commit into from
Feb 3, 2016
Merged

Extended Distinction between IBM JRE and Others #168

merged 1 commit into from
Feb 3, 2016

Conversation

anhahne
Copy link

@anhahne anhahne commented Feb 3, 2016

The JAAS property useTicketCache is not known to IBM JRE, instead the
property useDefaultCcache [sic!] is used.

The JAAS property useTicketCache is not known to IBM JRE, instead the
property useDefaultCcache [sic!] is used.
hierynomus added a commit that referenced this pull request Feb 3, 2016
Extended Distinction between IBM JRE and Others
@hierynomus hierynomus merged commit befae21 into xebialabs:master Feb 3, 2016
@hierynomus
Copy link
Contributor

Thanks!

options.put("refreshKrb5Config", "true");

if (JavaVendor.isIBM()) {
options.put("credsType", "initiator");

if (ticketCache) {
options.put("useDefaultCcache", "true");
Copy link
Contributor

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.

Copy link
Author

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.

@hierynomus
Copy link
Contributor

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");
Copy link
Contributor

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())

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants