The moose likes JSP and the fly likes realm jndi active directory help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "realm jndi active directory help " Watch "realm jndi active directory help " New topic

realm jndi active directory help

Jon Hodgkinson

Joined: Nov 16, 2006
Posts: 6
Hi there,

Im developing a jsp script for our intranet, where users are logged into their PC's by active directory. What I want the jsp todo is to silently log the user in to the intranet according to their active directory login.

Im not sure if Im going about this the right way, but Im trying to implement this: http://tomcat.apache.org/tomcat-5.0-doc/realm-howto.html#JNDIRealm but Im not having much success. Does any body have any ideas?

Many thanks!
Clifford Adams
Ranch Hand

Joined: May 12, 2004
Posts: 50
I have had success using the jcifs project at http://jcifs.samba.org/
Jon Hodgkinson

Joined: Nov 16, 2006
Posts: 6
I've successfully connected to realm and returned the user groups, now im trying to return some extra details about the user such as their email address.

I can return the roles of the user by setting

and I can get the email address by setting

But I dont seem to be able to return both. Im totally lost on this so any help is much appreciated. All I need is a pointer in the right direction.

Many Thanks in advance
Jon Hodgkinson

Joined: Nov 16, 2006
Posts: 6
anyone got any ideas about this?
I agree. Here's the link: http://aspose.com/file-tools
subject: realm jndi active directory help
Similar Threads
Authentification in my webapp
JAAS implementaion for web application with tomcat
How to implement j_security_check
Windows Authentication Using Tomcat 5.0
Single sign using windows credentials