You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/03/12 14:34:28 UTC

DO NOT REPLY [Bug 38938] New: - %{LA-U:REMOTE_USER} with Apache 2.2.0

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38938>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38938

           Summary: %{LA-U:REMOTE_USER} with Apache 2.2.0
           Product: Apache httpd-2
           Version: 2.2.0
          Platform: PC
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P3
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: apache@schiegl.com


On the previous 2.0.55 (Solaris 10x86) installation the following configuration
worked:

httpd.conf (virtual host context):
...
RewriteRule ^/service/fileman/(.*)
http://backend/~%{LA-U:REMOTE_USER}/service/fileman/$1 [P]
...

with 2.2.0 it seems even in the look ahead phase, REMOTE_USER is empty (at least
on my system)

output of rewrite.log:
IP - - [12/Mar/2006:14:02:35 +0100] [servername/sid#81bf7d8][rid#832ce50/subreq]
(3) applying pattern '^/service/fileman/(.*)' to uri '/service/fileman/fileman.cgi'
IP - - [12/Mar/2006:14:02:35 +0100] [servername/sid#81bf7d8][rid#832ce50/subreq]
(2) rewrite '/service/fileman/fileman.cgi' ->
'http://backend/~/service/fileman/fileman.cgi'
IP - - [12/Mar/2006:14:02:35 +0100] [servername/sid#81bf7d8][rid#832ce50/subreq]
(2) forcing proxy-throughput with http://backend/~/service/fileman/fileman.cgi
IP - - [12/Mar/2006:14:02:35 +0100] [servername/sid#81bf7d8][rid#832ce50/subreq]
(1) go-ahead with proxy request
proxy:http://backend/~/service/fileman/fileman.cgi [OK]
IP - - [12/Mar/2006:14:02:35 +0100]
[servername/sid#81bf7d8][rid#82e89d8/initial] (5) lookahead:
path=/service/fileman/fileman.cgi var=REMOTE_USER -> val=
IP - - [12/Mar/2006:14:02:35 +0100]
[servername/sid#81bf7d8][rid#82e89d8/initial] (2) rewrite
'/service/fileman/fileman.cgi' -> 'http://backend/~/service/fileman/fileman.cgi'
IP - - [12/Mar/2006:14:02:35 +0100]
[servername/sid#81bf7d8][rid#82e89d8/initial] (2) forcing proxy-throughput with
http://backend/~/service/fileman/fileman.cgi
IP - - [12/Mar/2006:14:02:35 +0100]
[servername/sid#81bf7d8][rid#82e89d8/initial] (1) go-ahead with proxy request
proxy:http://backend/~/service/fileman/fileman.cgi [OK]

A quick check with a php script shows REMOTE_USER is set correctly.
The authentication is performend against an LDAP Server (as with 2.0.55)

am i missing something? if more information is needed i'll will gladly provide it.

thanks!
Markus Schiegl

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38938] - %{LA-U:REMOTE_USER} with Apache 2.2.0

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38938>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38938


apache@schiegl.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From apache@schiegl.com  2006-03-17 17:36 -------
After some more trial and error i found out how to work around this problem.
Just use an additional RewriteCond to fetch the username:

RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule ^/service/fileman/(.*) http://backend/~%1/service/fileman/$1 [P]

This bug may be closed. At least this is a difference between 2.0 and 2.2.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org