Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes Automatic windows authentication for tomcat 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Automatic windows authentication for tomcat 7" Watch "Automatic windows authentication for tomcat 7" New topic

Automatic windows authentication for tomcat 7

Raguraman Thiru

Joined: Jul 25, 2013
Posts: 5

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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964

Yes, there is a Realm that hooks directly into the existing Windows authentication. I don't remember its name or where you can get a copy of it, but it is available. Ask Google.

I should caution you that unlike other Realm modules, you cannot just plug it in and go, however. For one rare time in its existence, Microsoft actually set security control "on" by default; each IE client that uses this Realm has to have a switch flipped to enable it to participate.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Automatic windows authentication for tomcat 7
Similar Threads
Windwos Integrated Authentication using AD and Tomcat (no prompt to the users)
Authenticating LDAP users without their input - doable?
Authentication Dialog Box
Single sign on - ldap/active directory/windows
IIS7.5-Jakarta Isapi-Tomcat 7: how to specify windows and anonymous authentication