If I comment this out
// | if (identity == null) | |||
// | { | |||
// | return true; | |||
// | } |
Everything works fine ...
Hi I finally fixed it by adding
if (username == null || password == null)
{
Callback callbacks[] = new Callback[2];
callbacks[0] = new NameCallback("Username");
callbacks[1] = new PasswordCallback("Password", false);
callbackHandler.handle(callbacks);
username = new String(
((NameCallback) callbacks[0]).getName());
password = new String(
((PasswordCallback) callbacks[1]).getPassword());
sharedState.put("javax.security.auth.login.name", username);
sharedState.put("javax.security.auth.login.password",
password);
}
to the SharedStateLoginModule class
For some reason WCILoginModule is not being called (perhaps becuase it is optional?)
Thanks,
Shannon
We are using Novell eDirectory, so I have set /platform/users up as a dynamic group that contains all directory objects with an object class of "person". This seems to work well.
Fred