pascal barbedor
pascalbarbedor at free.fr
Fri Mar 7 00:19:59 EST 2003
Hi on win 32 with python 2.2.2, installed last version 3.01, added missing mscvrt70.dll and everything works great! I wanted to try out the doc tutorial <Directory /mywebdir> AddHandler python-program .py PythonHandler myscript PythonAuthenHandler myscript PythonDebug On AuthType Basic AuthName "Restricted Area" require valid-user </Directory> with script from mod_python import apache def authenhandler(req): user = req.user pw = req.get_basic_auth_pw() if user == "spam" and pw == "eggs": return apache.OK else: return apache.HTTP_UNAUTHORIZED it works but req.user is always None I printed user, pw to apache log and got None eggs ie password is well passed, but not user so the authentication results in neverending pop up login window I checked from mozilla and opera browser thanks for any help -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20030307/9852e6fb/attachment-0003.htm
|