AUTH headers replacement now working in conditions

Topics: User Forum
Sep 1, 2006 at 10:38 AM

I have the following rewrite condition (ignore the

RewriteCond %{REMOTE_USER} whatever
RewriteRule ^/(?!redirected.htm)(.*)$ /redirected.htm

The values of following variables is always repalced with empty string: REMOTEUSER, AUTHUSER, LOGON_USER.

I have tested this with basic and integrated authenticaiton.

The log file shows the following:
Fri Sep 01 12:36:58 2006 - New Url: '/CreaWF2ASP/Gui/Images/crta390.gif'
Fri Sep 01 12:36:58 2006 - ApplyRules (depth=0)
Fri Sep 01 12:36:58 2006 - Rule 1 : 2
Fri Sep 01 12:36:58 2006 - ReplaceServerVariables: VariableName='REMOTE_USER'...
Fri Sep 01 12:36:58 2006 - ReplaceServerVariables: TestString='%{REMOTE_USER}' out=''
Fri Sep 01 12:36:58 2006 - GenerateReplacementString: src='/CreaWF2ASP/Gui/Images/crta390.gif' ReplacePattern='' vec=[[
0, 34] ] count=2
Fri Sep 01 12:36:58 2006 - Condition: checking '' against pattern 'whatever'
Fri Sep 01 12:36:58 2006 - Condition false, Rule does not apply (rc=-1)

I Suspet this has something to do with ISAPI filter beeing invoked too soon (before the user is authenticated).

Any ideas?

Bye,
Matej
Coordinator
Sep 12, 2006 at 6:29 PM
What version of the filter are you using?
-Dino