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/27 02:27:07 UTC

DO NOT REPLY [Bug 5951] New: - authentication does not work with ajp13

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=5951>.
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=5951

authentication does not work with ajp13

           Summary: authentication does not work with ajp13
           Product: Tomcat 4
           Version: 4.0.2 Beta 1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: RESOLVED
          Severity: Normal
          Priority: Other
         Component: AJP Connector
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mike@ds808.net


I tried the tomcat 3.2 security example using basic authentication with tomcat 
4 standalone.  It works fine.  As soon as I use the tomcat 4 ajp13 connector 
with iis5, it does not work.  Where I expect the logon form to appear, it 
simply just goes directly to a tomcat 4.2.b1 http status 403 - access to the 
requested resource has been denied screen.  I expected tomcat to respond with a 
Status: 401 unauthorized and a WWW-Authenticate: Basic realm="xxxx" response.  
I even tried it with the /manager webapp with the same results.  I even tried 
it with form base authentication with same results.  Please advise.

Following is the ajp13 debug log.

[Ajp13] read got # 4
[Ajp13] receive:  len = 294
[Ajp13] read got # 294
[Ajp13] receive:  total read = 294
[Ajp13] decodeRequest()
[Ajp13] === BaseRequest ===
method          = GET
protocol        = HTTP/1.1
requestURI      = /examples/jsp/security/protected/index.jsp
remoteAddr      = 127.0.0.1
remoteHost      = 127.0.0.1
serverName      = www.foo.com
serverPort      = 80
remoteUser      = 
authType        = 
queryString     = null
scheme          = http
secure          = false
contentLength   = 0
contentType     = null
attributes      = {}
headers         = === MimeHeaders ===
accept = */*
accept-language = en-us
connection = Keep-Alive
host = www.jwh.net
referer = http://www.foo.com/examples/jsp/index.html
user-agent = Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)
accept-encoding = gzip, deflate
content-length = 0

cookies         = === Cookies ===

jvmRoute        = null
=== AjpRequest ===
jvmRoute        = null

[Ajp13] sendHeaders()
[Ajp13] status is:  403(Forbidden)
[Ajp13] send()
[Ajp13] sending msg, len = 35
[Ajp13] doWrite(byte[], 0, 735)
[Ajp13] send()
[Ajp13] sending msg, len = 743
[Ajp13] finish()
[Ajp13] send()
[Ajp13] sending msg, len = 6
[Ajp13] recycle()
[Ajp13] receiveNextRequest()
[Ajp13] receive()

------- Additional Comments From remm@apache.org  2002-01-27 01:27 -------


*** This bug has been marked as a duplicate of 5647 ***

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>