"Daniel A. Theobald" <[EMAIL PROTECTED]> wrote:

>Does anyone know how to determine the windows username of the remote
>user in a servlet?
>

If you are using IIS and a commercial
servlet engine you should be able
to put the servlet(s) in a realm
that requires NT style auth.
Check the Jrun docs for how.

If you can't do that, there is a
weaker way we've used.
If there is an NT server that all
users -must- login to (central
file server say)and it runs an
SNMP agent then the servlet
can get the requestor's IP address
and query the file server (via SNMP) to get the user name associated with that IP 
address.

This makes a load of assumptions
that dont apply to the internet
but might do for your intranet.

We have an example of gettinq
the NT  user ID via snmp in our
free stack on www.westhawk.co.uk

Tim

http://www.westpoint.ltd.uk/

Internet reconnaissance services.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to