This content has been marked as final. Show 7 replies
EJP wrote:I've seen references indicating there is such a thing, but have not figured out the correct search terms to find an actual example or documentation on using it. Would you have a pointer to information on JAAS & NTLM?
I've looked through JAAS and didn't see anything.JAAS has an NTLM module. Hard to see how you could have missed that. I'm sure you'll find a PAM module out there somewhere.
EJP wrote:I've been searching for a couple of days before posting here. I was not able to find anything useful, now it's quite possible it is staring me in the face & I am just not seeing it so I was hoping for something like a direct link.
Err, the Java documentation? There's a big architecture picture on which you click JAAS.
The only thing that I have been able to find is the 'NTLoginModule' but that name is a bit of a misnomer as all it does it give you information on the currently logged in user, it doesn't allow you to pass a username/pwd and authenticate the user.
Edited by: JimM on Apr 22, 2011 2:41 PM
You can look [url http://download.oracle.com/javase/6/docs/jre/api/security/jaas/spec/com/sun/security/auth/module/package-summary.html]here for specific documentation on LoginModule s.
You should spend a few minutes studying these (short) tutorials:
[url http://download.oracle.com/javase/6/docs/technotes/guides/security/jgss/tutorials/AcnOnly.html]JAAS Authentication
[url http://download.oracle.com/javase/6/docs/technotes/guides/security/jgss/tutorials/LoginConfigFile.html]JAAS Login Configuration File
Especially notice the two-liner for doing authentication asking the user for a username and password from the console:
If your users supply username and password by other means, it should be straight forward to wrap those in an implemetation of CallbackHandler.
LoginContext lc = new LoginContext("JaasSample", new TextCallbackHandler()); lc.login();
Edited by: 858239 on 22:42 11/05/2011