Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within EJB and other Jakarta /Java EE Technologies
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
EJB and other Jakarta /Java EE Technologies
request.getRemoteUser getDescription? ActiveDirectoryServer
robyne vaughn
Ranch Hand
Posts: 40
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
After authenticating with JNDI/LDAP/Tomcat/ActiveDirectoryServer
I can do:
request.getRemoteUser()
and
request.getUserPrincipal().getName()
both work.
However, I would also like to get the description(which, in our case is their work location) from ADS.
These don't work:
request.getRemoteUser().getDescription()
request.getUserPrincipal().getDescription()
Any suggestions? Thanks,
Robyne
Rajan Punchouty
Greenhorn
Posts: 21
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
both of the method u have written of request object return
String
or Principal. HttpRequest object is specific to Http protocol. To get more information about user etc u need to use JNDI.
robyne vaughn
Ranch Hand
Posts: 40
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks. Since posting, I have figured that out. I appreciate your helpfulness.
Robyne
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to i get IP address of the Remote system
How to get user ID information - not in the Principal or remote user
imp.- j_security_check authenticates .. but how to set session as well ..?
Authentication and Authorization Problems with IIS 6 and Jrun 4
J2EE Authentication
More...