Skip to content

Commit

Permalink
Merge pull request #168 from anhahne/master
Browse files Browse the repository at this point in the history
Extended Distinction between IBM JRE and Others
  • Loading branch information
hierynomus committed Feb 3, 2016
2 parents c9d280f + 0bce0b9 commit befae21
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,26 @@ public AppConfigurationEntry[] getAppConfigurationEntry(String s) {
options.put("debug", "true");
}

if (ticketCache) {
options.put("useTicketCache", "true");
} else {
options.put("useTicketCache", "false");
}

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

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

if (ticketCache) {
options.put("useDefaultCcache", "true");
} else {
options.put("useDefaultCcache", "false");
}
} else {
options.put("client", "true");
options.put("useKeyTab", "false");
options.put("doNotPrompt", "false");

if (ticketCache) {
options.put("useTicketCache", "true");
} else {
options.put("useTicketCache", "false");
}
}

return new AppConfigurationEntry[]{new AppConfigurationEntry(JavaVendor.getKrb5LoginModuleName(),
Expand Down

0 comments on commit befae21

Please sign in to comment.