You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/01/31 23:24:10 UTC
DO NOT REPLY [Bug 5954] New: -
Not able to read REMOTE_USER
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5954>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5954
Not able to read REMOTE_USER
Summary: Not able to read REMOTE_USER
Product: Tomcat 4
Version: 4.0.1 Final
Platform: PC
OS/Version: Linux
Status: RESOLVED
Severity: Major
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: m.den.hartog@i-brain.nl
Using the JDBCrealm to a MySQL database, I have the problem when reading the
REMOTE_USER via my servlet for the first time it is empty. When I browse to the
same url for the second time, the REMOTE_USER variable is correctly filled in.
Example (site isn't working only used as an example):
* browse to : www.test.com/admin.html
* login via the JDBCRealm
* admin.html route me to my servlet via the client (using a META tag)
* reading the remote_user via the httpServletRequest.getRemoteUser()
it is empty
* again browse to www.test.com/admin.html
* reading the remote_user again it is filled in with the correct values
------- Additional Comments From craig.mcclanahan@sun.com 2002-01-31 22:24 -------
Closing with WORKSFORME, because this scenario works in the example application
supplied with Tomcat -- either with form-based login the way it is shipped, or
when you switch it to BASIC. The user principal (and therefore the remote user)
fields are populated on the first request, as well as subsequent requests.
To test this for yourself, modify "webapps/examples/WEB-INF/web.xml" to specify
BASIC authentication, then execute:
http://localhost:8080/examples/jsp/security/protected/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>