Configuring ZOPE to use Apache users
Hello everyone, I am trying to configure ZOPE to accept users authenticated by an Apache web server. (Mainly because I need to use a homebrew authentication service for which an Apache module is provided and maintained.) So far I have set up Apache (2.0.46) to access ZOPE (2.6.0) via FastCGI (as I couldn't get PCGI to run). The documentation in doc/WEBSERVER.txt explains how to set up Apache authentication via PCGI, but doesn't mention FastCGI in that paragraph. Is it at all possible to set up ZOPE to use remote users FastCGI? How would one do this. One of my problems is that the original server was set up by someone else and I need to make changes to the existing configuration. One problem may be that I did not find a file "access" in ZOPE's "var" directory. Naively I tried to create one containing just the name of a valid username on the Apache server folowed by a colon, in hope that Zope would use that. Still, I get two authentication requests, one by Apache and one by ZOPE. Where, except in the "var" directory could the "access" file reside? Any other ideas on what I am doing wrong? Any help would be greatly appreciated. Thank you. Gunther Weber
Gunther H.Weber wrote:
mention FastCGI in that paragraph. Is it at all possible to set up ZOPE to use remote users FastCGI? How would one do this.
Are you using the "-pass-header Authorization" argument when you declare the "FastCgiExternalServer" in your apache config? It is required. JZ
Gunther H.Weber wrote at 2004-7-20 08:25 -0700:
... I am trying to configure ZOPE to accept users authenticated by an Apache web server. (Mainly because I need to use a homebrew authentication service for which an Apache module is provided and maintained.) So far I have set up Apache (2.0.46) to access ZOPE (2.6.0) via FastCGI (as I couldn't get PCGI to run). The documentation in doc/WEBSERVER.txt explains how to set up Apache authentication via PCGI, but doesn't mention FastCGI in that paragraph. Is it at all possible to set up ZOPE to use remote users FastCGI? How would one do this.
You must find some way to let Apache pass a "REMOTE_USER" HTTP header to Zope. I do not know whether there is such a way and how it would work. Check the Apache documentation. I have seen an environment modifier in the "mod_rewrite" documentation but I fear, it will not make HTTP headers. -- Dieter
participants (3)
-
Dieter Maurer -
Gunther H.Weber -
John Ziniti