Bonjour
IIS4 with NT 4.0 or IIS5 with WIN 2000 server ??
Because the config is different
getRemoteUser() is not null and give the right user who is loging in the
network when in IIS5 you have to enable Anonymous access and Basic
authentification, so when the client ask to the server a ressource, if the
client is known by the network, Internet Explorer ( not Netscape out the
world of Microsoft !! ) send to IIS the userid, and IIS can authenticate the
client and req.getRemoteUser() is not null ..
ouf !!
If my english is bad I hope my answer is not bad ..
Claude
----- Original Message -----
From: "Shawn Sohl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 04, 2000 11:40 PM
Subject: Re: Retrieving NT username
> "System.getProperty("user.name")" prints out "SYSTEM" and
> "String uid = (String)req.getRemoteUser()" prints out "null".
>
> I am running on a IIS server and would like to retrieve the NT login name
of
> the person who is logged into the network. Anybody have any other ideas?
>
> Shawn
> -----Original Message-----
> From: Michael Calasanz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 04, 2000 3:17 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Retrieving NT username
>
>
> System.getProperty("user.name")
>
>
> >From: Shawn Sohl <[EMAIL PROTECTED]>
> >Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> > Servlet API Technology." <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Retrieving NT username
> >Date: Wed, 4 Oct 2000 14:32:22 -0500
> >
> >Is there a way to retrieve the user name of through the request object in
a
> >Servlet. You can do it in ASP with
> >the following call, "Request.ServerVariables("AUTH_USER")". Any help
would
> >be appreciated.
> >
>
>___________________________________________________________________________
> >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
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
___________________________________________________________________________
> 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
>
>
___________________________________________________________________________
> 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
___________________________________________________________________________
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