tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5647] - AJP13 connector will not pass authentication requests
Date Tue, 26 Mar 2002 21:12:19 GMT
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=5647>.
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=5647

AJP13 connector will not pass authentication requests





------- Additional Comments From robert.priest@bentley.com  2002-03-26 21:12 -------
I tried both of those solutions and neither worked for me.
Did they work for anyone else?

I did do some more digging, and I am finding that jk_isapi_plugin.c
is seeing the Authorization request, but by the time the request reaches
RequestHandler.java, authorization is equal to null.

Is this not more closely related to the problem than the setting of the 
principal object?


Here is essentially what I did to find this info out:

In HttpFilterProc (jk_isapi_plugin.c) I added:

if(p->GetHeader(pfc, "Authorization:", (LPVOID)Authorization, (LPDWORD)
&szAuthorization)) {
            jk_log(logger, JK_LOG_ERROR, 
                   "HttpFilterProc Got Authorization: %s \n",Authorization);
        }else
		{
			jk_log(logger, JK_LOG_ERROR, 
                   "HttpFilterProc Authorization Not Found\n");
		}


it returned:
[Tue Mar 26 15:48:21 2002]  [jk_isapi_plugin.c (628)]: HttpFilterProc started
[Tue Mar 26 15:48:21 2002]  [jk_isapi_plugin.c (648)]: HttpFilterProc Got Author
ization: Basic cHdhZG1pbjpwd2FkbWlu

AND in RequestHandler.decodeRequest(), the base request (BaseRequest.java) is 
dumped to the log if debug (on the connector element in server.xml) is set > 5).
	*- I modified BaseRequest.toString() to also print the authorization 
object.

*BTW - decodeRequest() happens before setAjpRequest().

That dumps out:

2002-03-26 15:48:21 Ajp13Request[5] Request:
=== BaseRequest ===
method          = OPTIONS
protocol        = HTTP/1.1
requestURI      = /slide/test
remoteAddr      = 127.0.0.1
remoteHost      = 127.0.0.1
serverName      = localhost
serverPort      = 80
remoteUser      =
authType        =
queryString     = null
authorization   = null
scheme          = http
secure          = false
contentLength   = 0
contentType     = null
attributes      = {}
headers         = === MimeHeaders ===
accept-language = en-us
connection = close
host = localhost
user-agent = WebDrive/5.01 NT
pragma = no-cache
content-length = 0

cookies         = === Cookies ===

jvmRoute        = null


Isn't our problem here?

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message