Skip to content

Commit

Permalink
Kerberos Login Module doesn't get the keytab configuration option if …
Browse files Browse the repository at this point in the history
…the cache is used.
  • Loading branch information
maddingo authored and rwinch committed May 22, 2024
1 parent 7c16e4c commit be19672
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void afterPropertiesSet() throws Exception {
LOG.warn("Your keytab is in the classpath. This file needs special protection and shouldn't be in the classpath. JAAS may also not be able to load this file from classpath.");
}

if (!useTicketCache) {
if (!useTicketCache || keyTabLocation != null) {
Assert.notNull(keyTabLocation, "keyTabLocation must be specified when useTicketCache is false");
keyTabLocationAsString = keyTabLocation.getURL().toExternalForm();
if (keyTabLocationAsString.startsWith("file:")) {
Expand Down

0 comments on commit be19672

Please sign in to comment.