|
Hello,
I have the following configuration. Windows 2000, Apache
1.3.12, Apache Jserv 1.1.2, JDK 1.2.2 and JSDK 2.0.
I followed directions from this site http://www.apacheweek.com/features/userauth to
implement the user authentication. The info below is in my .htaccess file,
which is located in my htdocs directory...
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /ibminfo/larry
require valid-user
The only other info I changed was AllowOverride none to AllowOverride
AuthConfig. The user authentication is working, ie I get prompted for a
username and password when accessing the localhost (or anything in the htdocs
directory).
Here is the scenario where I am trying to use getRemoteUser(). I have
an html page in the htdocs directory (which in order to see it you have to
authenticate), then the user inputs some other info, pressses the submit button
which calls a servlet. The servlet attempts to display in html
the user via, req.getRemoteUser(). I get null for the
req.getRemoteUser(). I am successful displaying other info the user
submitted (like req.getParameter("LEXIS")), just not the getRemoteUser()
method.
I apologize in advance if this is in the Jserve faq, but I have not been
able to access the "new FAQ" site for 2 days
now....http://java.apache.org/faq/
Thanks in advance
Dave |
- RE: getRemoteUser()....problem DHollister
- RE: getRemoteUser()....problem Don Pierce
