Kerberos Login Module doesn't get the keytab configuration option if the cache is used.
This commit is contained in:
committed by
Rob Winch
parent
7c16e4c857
commit
be196723f3
@@ -74,7 +74,7 @@ public class SunJaasKrb5LoginConfig extends Configuration implements Initializin
|
||||
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:")) {
|
||||
|
||||
Reference in New Issue
Block a user