Discussing the nuts and bolts of software development

Tuesday, October 23, 2007

 

Easy NTLM Authentication in Java Web Apps

A common requirement of web apps on corporate Intranets is NTLM HTTP authentication. This allows a web browser to automatically login by providing the user's network password, without the user having to manually go through a login dialog.

NTLM authentication is a staple feature of Windows-only IIS, but what if you want to offer NTLM authentication from a web server hosted on a Linux machine?

Recently I used the jCIFS NTLM Authentication module (http://jcifs.samba.org/src/docs/ntlmhttpauth.html). Literally all I had to do was drop a .jar file into the lib/ directory of my Java web app and copy-paste some options into my web.xml file. In minutes, my web app was authenticating users' NT credentials against the network's domain controller, and logging them in automatically.

The source code is open and seems easily editable, which is a good thing because it the NTLM authentication is pretty basic. For example, if a browser doesn't provide correct NT credentials, by default the web app will just keep prompting for credentials ad infinitum. I should be able to go in there and code a limited number of retries.


Labels: , , ,


Comments:
I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

Java Online Training Java Online Training Core Java 8 Training in Chennai Core java 8 online training JavaEE Training in Chennai Java EE Training in Chennai
 
Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training

Hibernate Online Training Hibernate Online Training Spring Online Training Spring Online Training Spring Batch Training Online Spring Batch Training Online
 
Very nice article this would definitely help the beginners, coding made easy with the help of example you shared. Java Training in Chennai
 
I have read your blog and i got a very useful and knowledgeable information from your blog.You have done a great job . If anyone want Java Training in Chennai, Please visit our page Java Training in Chennai
 
hi admin.i am really love it your blog.Because your explanation wise all the topics are too good.
Java Training in Marathahalli
Python Training in Marathahalli
 
There are lots of information about hadoop have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get to the next level in big data. Thanks for sharing this. Java Training in Chennai | Data Science Training in Chennai
 
Hi, you have given really informative post. Thanks for sharing this post to our vision. Learn Java will helps you to reach your goal.Java Training in Marathahalli
Data Science Training in BTM Layout
 
Wonderful Blog!! Easy NTLM Authentication in Java Web Apps is mandatory in any Java application.Thank you for sharing the article with us.

Java Training |
Java Course in Chennai
 
Wonderful Blog!!! Your post is very informative about Hadoop technology. Thank you for sharing the article with us.

Hadoop Training in Chennai |
Big Data Course in Chennai
 
It is natural to make mistake while developing your application as a developer. Keep updating more knowledge on Software testing. Selenium is the best automation testing tool to test any application.

Selenium Training |
Selenium Courses in Chennai
 
Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?