Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieve current Login ID  RSS feed

 
cb poo
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using LDAP for as my web application authentication. After login to the
page, I would like to display the current login user ID on my page. How to
retrieve my current login???
Please advise.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check in the Servlet spec for the method getUserPrincipal(). That will allow you to retrieve the logged in user.
Kyle
 
cb poo
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, it works. Thank you
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!