When you get a null remote user, return a http 401 Authorisation Required
error from your servlet, this will cause the web server to effectively ask
the browser for authentication which will cause the user to be prompted
with a dialog for username and password. The servlet will then be called
again and you will have the username (which must be a valid user for the
web server). I then validate the username against my own database tables
to determine the content I'm willing to show the particular user....
cheers
Tony
Message text written by "A mailing list for discussion about Sun
Microsystem's Java Servlet API Technology."
>It seems that the getRemoteUser() always returns null. It is unable to get
the login userid from the NT system.
I have tested the SnoopServlet example included in jsdk2.0 and snoop.jsp
sample in gunjsp-0.9.8.
They both return null for userid.
I am using Apache web server 1.3.4, JServ 1.0b and jsdk2.0 and jdk1.1.6. on
Windows NT.
In Microsoft IIS / ASP, it is a simple line : userid =
Request.ServerVariables("REMOTE_USER")
to get the userid from NT system as user login.
Weigen
<
___________________________________________________________________________
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