Actually, that won't necessarily give you what you want.  NT is a multi-user
system so finger could return multiple entries for all users who are logged on.
I was originally going to suggest that you use a JNI call to a DLL that would
use NT API's to get the information, but that would just get you the security
context the servlet was running under.  What NT user name are you looking for?
Also, what method are you using to execute servlets under NT?  We use JRun and I
know there is a bunch of stuff in there for session information.  It might be
possible that the tool you are using has the information you are looking for
tucked away somewhere.






Stefan Kramp <[EMAIL PROTECTED]> on 03/30/2001 11:40:21 AM

Please respond to "A mailing list for discussion about Sun Microsystem's Java
      Servlet API Technology." <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Scott E Herter/MSD/US/PBI)

Subject:  AW: Windows NT user name



Hi,

I don't know a method to do that.

What you can do is install a finger daemon on the NT client, open a socket
to the fingerd and read the response.

-----Ursprungliche Nachricht-----
Von: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]Im Auftrag von
Binu George
Gesendet: Freitag, 30. Marz 2001 13:27
An: [EMAIL PROTECTED]
Betreff: Windows NT user name


Hi all,
     Can I get Client NT User Name on the servlet  by any method?
Thanks and Regards
Binu

___________________________________________________________________________
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