Question

I guess an example of jaas.conf file that uses the NTLoginModule for authentication would help.

Was it helpful?

Solution

I am not sure if that is what you mean, but I guess you could have:


SomeName
{
   com.sun.security.auth.module.NTLoginModule required;
};

and then you can use it:


LoginContext lc = new LoginContext("SomeName", new SomeCallbackHandler());
lc.login();

The java.security.auth.login.config property should point to where the config file is located.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top