I've gotten a JndiRealm working with Tomcat to authenticate users from our
LDAP directory and allow them access to various parts of our web application
based on groups and roles. That works slick as snot. Now I'd like to pluck
a few more tidbits from our LDAP database -- email address, first
You'll need to connect to LDAP via JNDI to get the other user attributes.
JNDIRealm only knows how to authenticate and authorize, not user information
retrieval.
To get the user name - request.getRemoteUser() or request.getUserPrincipal()
should give you enough information to perform your ldap
OK, thanks. I was reaching that conclusion. Thanks for the confirmation.
Dave
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 24, 2004 10:05 AM
To: Tomcat Users List
Subject: Re: Accessing LDAP after authentication
You'll need to connect to LDAP