Forums Register Login

Can I get a userid from Windows Authenication from a JSP

+Pie Number of slices to send: Send
Hi,
I was wondering if there was a way for a JSP page to get the userid from a users windows login???
Is this possible??
Thx,
Rich
+Pie Number of slices to send: Send
Complicated. The answer is 'no', except when the answer is 'yes'...
If a user is logged on to their person computer and visits the JSP, you cannot get the name that they logged in as.
However, you can (in some servers like WebSphere) get the JSP to authenticate against the windows login - but all this functionality is driven from the server side. If the JSP is secured, (BASIC or FORM based authentication), the first time they ask for the page they will be challenged for a username and password. These details can be validated against the server. After that the userid is available via request.getRemoteUser()
Dave
straws are for suckers. tiny ads are for attractive people.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1476 times.
Similar Threads
html:hidden
Windows Authentication
Action Class
Problems with getRemoteUser()
Basic Windows Authentication in Weblogic
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:44:17.