Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat JNDI LDAP config object map

Reply
Thread Tools

Tomcat JNDI LDAP config object map

 
 
Clayton
Guest
Posts: n/a
 
      12-15-2004
For some reason, I'm brain dead when it comes to this one. Does anyone
have any idea (code examples or whatever!!) how I can map a JNDI
object in JSP to the previously authenticated user (via JNDI/LDAP) so
I can retireive settings, etc. and disply them on a JSP page?

I have a <Realm> in Tomcat (<Realm
className="org.apache.catalina.realm.JNDIRealm" debug="99"
connectionURL="ldap://brandonrha.mb.ca:389/DC=brandonrha,DC=mb,DC=ca"
userSearch="(sAMAccountName={0})" userPattern="BRHA\{0}"
userSubtree="true"/>) and as SOON as I log into the secure web area I
want to be able to grab that authenticated object (the user) and put
it into a JNDIRealm object, and display all their info onto the web
page...

How can I get access to this specific object? I know how to create a
new one, but does that new one map to the current authenticated user
from tocat? How can I get access to that authenticated user?

Any help or suggestions would be very much appreciated!

thanks

-Clayton
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why use ENC JNDI (java:comp/env) instead of JNDI name ? Mick Java 2 02-23-2005 12:50 PM
Need Help with Hibernate - "Not binding factory to JNDI, no JNDI name configured" Mike S Java 0 09-16-2004 09:58 PM
JNDI/LDAP and PagedResultsControl Mark Java 0 03-05-2004 09:13 PM
[ JNDI / LDAP ] How to retrieve case-sensitive attribute id from search ? Cram TeXeD Java 0 02-04-2004 04:53 PM
JNDI LDAP problem in JRE 1.4 Ray Dees Java 0 09-05-2003 08:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57