Apache authentication handler to hook into AccountManager

Description

Using mod_python, you can provide HTTP authentication using the same backend as the form-based logins. Make sure to install to the global site-package directory (python setup.py install should suffice).

Bugs/Feature Requests

Existing bugs and feature requests for ModAuthAcctmgrScript are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out ModAuthAcctmgrScript from here using Subversion, or browse the source with Trac.

Example

To enable (the plugin part):

[components]
mod_auth_acctmgr.* = enabled

An example config:

AuthType Basic
AuthName "Login"
PythonOption TracEnv /var/trac
PythonAuthenHandler mod_auth_acctmgr
Require valid-user

An example config using the Trac permissions check:

AuthType Basic
AuthName "Login"
PythonOption TracEnv /var/trac
<LimitExcept GET PROPFIND OPTIONS REPORT>
    PythonOption TracPerm SVN_WRITE
</LimitExcept>
<Limit GET PROPFIND OPTIONS REPORT>
    PythonOption TracPerm SVN_READ
</Limit>
PythonAuthenHandler mod_auth_acctmgr
Require valid-user

Recent Changes

[3416] by coderanger on 03/25/08 07:39:08

Change my email to avoid Yahoo, which decided to brake my scraper script recently.

[2265] by coderanger on 05/27/07 08:41:10

ModAuthAcctmgrScript:

Working version of the permissions check.

[2264] by coderanger on 05/27/07 07:13:21

ModAuthAcctmgrScript:

Remove the dependency on AccountManagerPlugin, because it might not be installed globally.

[2263] by coderanger on 05/27/07 07:11:55

ModAuthAcctmgrScript:

Trying to add an authz handler too.

Author/Contributors

Author: coderanger
Contributors: