Open saltos opened 4 years ago
I've just committed an update to the GSSAPIBindRequest class that refreshes the configuration before creating the LoginContext. Could you please test it and verify that it works as expected in your environment?
Thank you, I will test it as soon as possible. At first glance everything looks ok.
It works fine. I am looking forward for the next release.
The 5.0.0 release of the LDAP SDK is now available and includes the fix for this issue.
When I use
GSSAPIBindRequest
with a keytab file specified withkeyTabPath
property ofGSSAPIBindRequestProperties
I get the error "javax.security.auth.login.LoginException: No LoginModules configured for GSSAPIBindRequest".The problem is the empty config in
javax.security.auth.login.LoginContext
. The empty configuration was loaded insun.security.provider.ConfigFile
before system propertyjava.security.auth.login.config
had been set inGSSAPIBindRequest
. Therefore whenSystem.getProperty("java.security.auth.login.config")
inConfigFile
is called, we getnull
value - no configuration file.I can add
Configuration.setConfiguration(null)
afternew GSSAPIBindRequest(properties)
, but callConfiguration.getConfiguration().refresh()
insideGSSAPIBindRequest
beforeLoginContext
creation is more preferable.I tested both solutions and both works fine. I would appreciate if you add update for the configuration in
GSSAPIBindRequest
.