[mod_python] mod_python and protected realms

Graham Dumpleton grahamd at dscpl.com.au
Wed Aug 10 18:10:40 EDT 2005


Known issue, see:

   http://issues.apache.org/jira/browse/MODPYTHON-47

There is no way of using digest authentication in conjunction
with mod_python.publisher at the moment.

Graham

On 11/08/2005, at 7:50 AM, Tony Burger wrote:

> Got an odd thing happening and I can't figure out whats going on.  I'm 
> running mod_python 3.1.4 on Apache 2. I've got the following setup in 
> my httpd.conf:
>
> AddHandler python-program .py
> PythonHandler mod_python.publisher
>
> <Directory "/home/somepath/protected">
>     AuthName "some realm"
>     AuthType Digest
>     AuthDigestFile /path to realm file
>     AuthDigestDomain /
>     Require user someuser
>     Order allow,deny
>     allow from all
> </Directory>
>
> When I request a file from the protected realm it forces me to login 
> which works as it should. Once I'm logged in to the realm, I try and 
> run a python script but I keep getting "400 Bad Request" responses as 
> if it can't find the script.  The python script directory exists in a 
> subdirectory under the realm such as 
> "/home/somepath/protected/scripts".  Now here's the wierd part.  As 
> soon as I comment out the realm related info, the python script works 
> fine.  Has anyone seen this before and/or could anyone provide some 
> insight?  Thanks!
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list