File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Capturing login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Capturing login" Watch "Capturing login" New topic

Capturing login

Rashmi Rajappa

Joined: Jul 29, 2003
Posts: 2
My application should be able to capture the Windows network login in a servlet, and hence use it for validating the user so that his Windows login can be used as the login for my application.
Thanx in advance for ur help

-Rashmi<br />Try until u succeed
Michael Zalewski
Ranch Hand

Joined: Apr 23, 2002
Posts: 168
Check out jCIFS
It will even do NTLM authentication (where the user is not actually prompted
for a password if the user has already logged in to the NT domain). It is a 100% java implementation. And it can work from Linux, Solaris, or any system (provided the system can see a resource domain controller via TCP). Nothing needs to be installed on the NT side.
It's easy to add to an existing application if your container supports servlet chaining. Just add their NTLM HTTP Servlet Filter to yoru filter chain.
I agree. Here's the link:
subject: Capturing login
It's not a secret anymore!