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
 
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

Java Training in Bangalore
 
Pharmacy Management System helps the organisation to keep a track of all the information related to the pharmacies.
Best Java Training in Chennai
 
Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog... Android Training in Chennai
 
Pretty post, a lot of resource in one place, Thanks for sharing an innovative idea, It is useful information for beginners.
Learn Android course.
 
Thanks for sharing such a wonderful blog..

PLC Training in Chennai | PLC Training Institute in Chennai
 
Thanks for the best blog.it was very useful for me.keep sharing such ideas in the future as well. QTP Training in Chennai | Java Training in Chennai | Python Training in Chennai
 
Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
amazon-web-services-training-in-bangalore

 
Appreciating the persistence you put into your blog and detailed information you provide.
Data Science Training in Hyderabad | Devops Training in Hyderabad


 
Your blog was very interesting & easy to understand. Thank you so much sharing that informative blog.Inventory Audit
Customer Reconciliation
Fixed Assets Audit
 
Great post!I am actually getting ready to across this information, I am very happy to this commands.Also great blog here with all of the valuable information you have.Well done, it's a great knowledge.
java training in chennai | core java training in chennai
 
Be it any app, either mobile or web application it will definitely have an impact in the growth of any business. Expert Mobile Application Development Company can make it happen for you.
 
Very Nice!
It is really a great and useful piece of info. I’m glad that you shared this helpful info with us. Thank you for sharing best Java Spring Training in Chennai | Vlsi Training in Chennai.

 
Thanks for sharing
Digital Marketing Training In Chennai
 
I believe there are many more pleasurable opportunities ahead for individuals that looked at your site. RPA Training in Chennai | Blue Prism Training in Chennai
 
Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. Keep in blogging. Duplicate Payment Review | Continuous Transaction Monitoring | Duplicate Payment Recovery
 
PhD Thesis Writing Services https://www.wordsdoctorate.com/

Dissertation Writing Services https://www.wordsdoctorate.com/dissertation-writing-services/

Research paper Writing Service https://www.wordsdoctorate.com/journal-papers/

Master Thesis Writing Service https://www.wordsdoctorate.com/masters/

thesis writing service https://www.wordsdoctorate.com/phd/
 
This information is impressive; I am inspired by your post writing style & how continuously you describe this topic.... Java Training in Chennai | Python Training in Chennai
 
The strategy you have posted on this technology helped me to get into the next level and had lot of information in it... Java Training in Chennai | RPA Training in Chennai
 
Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
Good discussion. Thank you.
Anexas
Six Sigma Training in Abu Dhabi
Six Sigma Training in Dammam
Six Sigma Training in Riyadh

 

I have read your blog and I gathered some needful information from your blog. Keep update your blog. Java Training in Chennai | Pega Training in Chennai
 
Amazing Article ! I have bookmarked this article page as i received good information from this. All the best for the upcoming articles. I will be waiting for your new articles. Thank You ! Kindly Visit Us @ Coimbatore Travels | Ooty Travels | Coimbatore Airport Taxi

 
Very informative article.Thank you admin for you valuable points.Keep Rocking
rpa training chennai | rpa training in velachery | best rpa training in chennai
 
Thanks for your efforts in sharing this information in detail. This was very helpful to me. kindly keep continuing the great work.

Best TOEFL Class in Chennai
TOEFL Training Center in Chennai
TOEFL Coaching Classes in Chennai
Spanish Language Training Institute near me
Spanish Language in Chennai
Spanish Coaching in Chennai
Spanish Language Classes in Chennai
 
Awwsome informative blog ,Very good information thanks for sharing such wonderful blog with us ,after long time came across such knowlegeble blog. keep sharing such informative blog with us. Aviation Courses in Chennai | Best Aviation Academy in Chennai
Aviation Academy in Chennai | Aviation Training in Chennai | Aviation Institute in Chennai
 
Thanks for sharing a valuable information to us. your article inspired me more. I Would like to get more updates in future.

Selenium Training in Chennai
Selenium Training
iOS Training in Chennai
Digital Marketing Training in Chennai
Hadoop Training Chennai
Hadoop Training in Chennai
Big Data Training in Chennai
 

Awwsome informative blog ,Very good information thanks for sharing such wonderful blog with us ,after long time came across such knowlegeble blog. keep sharing such informative blog with us.
Airport Management Courses in Chennai | Airport Management Training in Chennai | Diploma in Airport Management Course in Chennai | Airlines Training Chennai | Airline Academy in Chennai
 
Thanks for the information. Nice blog. I understood the concept very well. This blog is very informative. And it’s very interesting topic.

https://www.hopetutors.com/course/angular-6-training-in-chennai/

Blue Prism Training

DevOps Training
 
Great!it is really nice blog information.after a long time i have grow through such kind of ideas.thanks for share your thoughts with us.
Cloud Computing Courses in OMR
Cloud Computing Training Institutes in T nagar
Best Cloud Computing Training Institute in Anna nagar
Best institute for Cloud computing in Bangalore
 
Thank you for taking the time and sharing this information with us. It was indeed very helpful and insightful while being straight forward and to the point.
Hadoop Training in Chennai
CCNA Training in Chennai
Big Data Hadoop Training in Chennai
Hadoop Course in Chennai
CCNA institute in Chennai
CCNA Training center in Chennai

 
Hey, wow all the posts are very informative for the people who visit this site. Good work! We also have a Website. Please feel free to visit our site. Thank you for sharing.
Well written article.Thank You Sharing with Us android quiz questions and answers | android code best practices


 
I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.
R Programming Training in Chennai | R Programming Training in Chennai with Placement | R Programming Interview Questions and Answers | Trending Software Technologies in 2018

 
It is a very nice article. You have done a great job by posting this.

C++ Training in Chennai
C++ Training
C++ Training in Adyar
C++ Training in Tambaram
C++ Training in Velachery

 
Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.Trending Software Technologies in 2018 | Hadoop Training in Chennai | big data Hadoop training and certification in Chennai
 
Fantastic concept, this is very helpful for improve my knowledge. I like more content from your blog....
Machine Learning Training in Aminjikarai
Machine Learning Course in Vadapalani
Machine Learning Course in Chennai
Machine Learning Training in Chennai Velachery
Machine Learning Course in Tnagar
 
This is a super article, Given such a great amount of data in it, These sort of articles keeps the clients enthusiasm for the site, and continue sharing more... Good fortunes.
Python Training in Chennai
 
Thanks for posting useful information.You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...Really it was an awesome article...very interesting to read..please sharing like this information......
PHP interview questions

 
I just needed to record a speedy word to express profound gratitude to you for those magnificent tips and clues you are appearing on this site.
iosh course in chennai

 
Amazing blog about the various informative information on the programming languages... Java Training in Chennai | Pega Training in Chennai
 
your blog was good and very useful...so keep sharing information with us

airline and airport management courses in chennai

best air hostess training institute in chennai

 
Very interesting blog!!! I learn lot of information from your post. It is very helpful to me. Thank you for your fantastic post.
RPA Courses in Bangalore
Robotics Classes in Bangalore
Robotics Training in Bangalore
Robotics Courses in Bangalore
Automation Courses in Bangalore
RPA Training in Bangalore
 
Post a Comment



<< Home

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