Fails as Apache-AuthenNTLM attempts to use Apache::Connection::remote_host to alter the remote hostname so it can check to see if is the same connection when it is next called:
From AuthenNTLM.pm:539 # we cannot attach our object to the connection record. Since in 540 # Apache 1.3 there is only one connection at a time per process 541 # we can cache our object and check if the connection has changed. 542 # The check is done by slightly changing the remote_host member, which 543 # persists as long as the connection does 544 # This has to be reworked to work with Apache 2.0 545 if (ref ($cache) ne $class || $$conn != $cache -> {connectionid} || $conn -> remote_host ne $cache->{remote_host}) 546 { 547 $conn -> remote_host ($conn -> remote_host . ' ') ; 548 $self = {connectionid => $$conn, remote_host => $conn -> remote_host} ;
See http://gossamer-threads.com/lists/engine?list=modperl&do=search_results&search_forum=forum_4&search_string=%22Report+on+mp2+accessors+in+apache_structures.map%22&search_type=AND
This method is defined read-only. But it's suggested to make it read/writeable again (see last message from stas).
The change has been introduced here: http://cvs.apache.org/viewcvs.cgi/modperl-2.0/xs/maps/apache_structures.map?r1=text&tr1=1.41&r2=text&tr2=1.42&diff_format=h
And is also menntionned into the changelog http://perl.apache.org/dist/mod_perl-2.0-current/Changes of 1.99_15.
I really have no idea about Apache-AuthenNTLM but to make it working again you could apply the patch below and rebuilt your mod-perl. As far as I can tell from the last mail from Stas it's going to be read/writeable in future if one volunteers to write tests :-).
Tom
This breaks in 1.99_16, but AuthenNTLM suggests it has ModPerl 2 support written in, so is this something that has changed recently?
I'm also not exactly sure why there are three checks (ie. that there is a cache object, that the cache object connection id is the same as the current, and then that the (altered) remote host name is the same in both). I would have thought it would be enought to compare the connectionid, but this seems to stay the same between connections..?
Any ideas?
ta,
Chris
Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird
Index: apache_structures.map =================================================================== RCS file: /home/cvspublic/modperl-2.0/xs/maps/apache_structures.map,v retrieving revision 1.48 diff -u -r1.48 apache_structures.map --- apache_structures.map 17 Sep 2004 00:07:24 -0000 1.48 +++ apache_structures.map 20 Sep 2004 17:15:58 -0000 @@ -106,7 +106,7 @@ < local_addr < remote_addr < remote_ip -< remote_host + remote_host - remote_logname < aborted keepalive
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html