Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#7567 closed (fixed)

modpython.authenhandler does not work

Reported by: dannychen Owned by:
Component: contrib.auth Version: 0.96
Severity: Keywords: mod_python
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I follow the document <Authenticating against Django’s user database from Apache> but django always return apache.HTTP_UNAUTHORIZED.

At source C:\Python24\Lib\site-packages\django\contrib\auth\handlers\,
modpython does not work on my pc box(winxp, apache 2.0, mod_python 3.3.1).
req.user always return null.

mod_python said req.get_basic_auth_pw() must called before using req.user.
My solution is, add


at line 30 before

kwargs = {'username': req.user, 'is_active': True}

Change History (1)

comment:1 Changed 15 years ago by Karen Tracey <kmtracey@…>

Resolution: fixed
Status: newclosed

This line of code was already added in r6305. Fix won't be backported to 0.96 since it isn't a security fix, but it's in the current SVN code.

Note: See TracTickets for help on using tickets.
Back to Top