aspose file tools*
The moose likes Tomcat and the fly likes automatic LDAP authentication for web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "automatic LDAP authentication for web application" Watch "automatic LDAP authentication for web application" New topic
Author

automatic LDAP authentication for web application

Raguraman Thiru
Greenhorn

Joined: Jul 25, 2013
Posts: 5
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.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19759
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Raguraman Thiru
Greenhorn

Joined: Jul 25, 2013
Posts: 5
Thanks Rob . Implemented it and working fine..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: automatic LDAP authentication for web application