• 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

request.getRemoteUser getDescription? ActiveDirectoryServer

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. Since posting, I have figured that out. I appreciate your helpfulness.
Robyne
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic