• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

automatic LDAP authentication for web application

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a requirement of implementing LDAP based automatic windows authentication for a application deployed in tomcat 7. The requirement is, when I try to access the application page it should take the windows login credentials for authentication process and should not prompt user to enter the credentials. I had came across JNDI realms and various authentication types like BASIC, form based ,digest,etc. From my study I think all are prompting user to enter the credentials.

Is there any other way to achieve my requirement? All the client systems are in Intranet domain and user details stored in LDAP server.
 
Sheriff
Posts: 21842
105
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've used JCIFS in the past, but that's a bit outdated. They acknowledge it though, and their website somewhere mentions better alternatives: http://jcifs.samba.org/src/docs/ntlmhttpauth.html

Note that your browser must cooperate. Firefox will keep asking for the credentials unless you add the site to the "network.automatic-ntlm-auth.trusted-uris" configuration parameter. Opera always asks for the credentials, although it can remember them (so can Firefox). I can't really remember what Chrome does.
 
Raguraman Thiru
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rob . Implemented it and working fine..
 
Their achilles heel is the noogie! Give them noogies tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!