[Zope-dev] Re: [Zope] Still have an Authorization failure in Debian/Potato

Xeno Campanoli xeno@aa.net
Mon, 03 Jan 2000 17:37:52 +0000


"M. Adam Kendall" wrote:

> You are missing one very important piece..
>
> RewriteCond %{HTTP:Authorization}  ^(.*)
>

I just inserted this, but got the same response.  My srm.conf file now
has the following lines:


ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

RewriteCond %{HTTP:Authorization}  ^(.*)
RewriteRule ^/Zope(.*) /usr/lib/cgi-bin/Zope.cgi$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]

the last two being one long line in the file.  I then stopped and
restarted zope as follows:

asp:/etc/init.d# ./zope stop
Stopping Zope... done.
asp:/etc/init.d# ./apache stop
Stopping web server: apache.
asp:/etc/init.d# ./apache start
Starting web server: apache.
asp:/etc/init.d# ./zope start
Starting Zope...................... done.

and then tried my username and password as specified in
/var/lib/zope/access by zpasswd.py, and I get the
same "Authorization failed.  Retry?" window.

I also added the following earlier to the access.conf file, after
reading something in a howto:

#<Directory /usr/lib/cgi-bin>
#AllowOverride None
#Options ExecCGI FollowSymLinks
#</Directory>
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>

...the commented out version is from the installation.  I think this is
from Jens SuSE bug addendum.

I apologize if I'm doing something stupid here, but I don't see it.

>
> That line should be placed before the rewrite rule you
> have below..
>
> On 03-Jan-2000 Xeno Campanoli wrote:
> >> RewriteRule ^/Zope(.*) /usr/lib/cgi-bin/Zope.cgi$1
> >> [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
> --
> M. Adam Kendall         |
> mak@kha0s.org           |  "There's never enough time to do
> http://kha0s.org        |  all the nothing you want."
>                         |   --Bill Watterson (Calvin and Hobbes)

Thank you for your feedback.