• Post Reply Bookmark Topic Watch Topic
  • New Topic

request.getRemoteUser getDescription? ActiveDirectoryServer

 
robyne vaughn
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Since posting, I have figured that out. I appreciate your helpfulness.
Robyne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!