[[PageOutline(2-5,Contents,pullout)]]
= Mod_WSGI Acctmgr =
== Description ==
Use the AccountManagerPlugin to provide authentication to apache.
== Bugs/Feature Requests ==
Existing bugs and feature requests for ModWsgiAcctmgrScript are
[report:9?COMPONENT=ModWsgiAcctmgrScript here].
If you have any issues, create a
[http://trac-hacks.org/newticket?component=ModWsgiAcctmgrScript&owner=pacopablo new ticket].
== Download ==
Download the zipped source from [download:modwsgiacctmgrscript here].
== Source ==
You can check out ModWsgiAcctmgrScript from [http://trac-hacks.org/svn/modwsgiacctmgrscript here] using Subversion, or [source:modwsgiacctmgrscript browse the source] with Trac.
== Example ==
'''Apache config for single host:'''
{{{
WSGIPythonPath /var/trac-0.11dev/lib/python2.4/site-packages
ServerName hostname.domain
DAV svn
SVNPath /srv/trac/svn/it
AuthType Basic
AuthName "Account Manager Auth"
AuthBasicProvider wsgi
WSGIAuthUserScript /path/to/script/acctmgr_auth.wsgi
Require valid-user
}}}
The `TRAC_ENV` and `PYTHON_EGG_CACHE` need to be modified and set inside the script.
'''Config for multiple host:'''[[BR]]
''First you need the patch from the Ticket:'' #8525!
[[BR]]
The patch adds a function, which analyzes the REQUEST_URI and take a the part between[[BR]]
TRAC_REQUEST_LOCATION and the next ''/'' as a part of the folder to the trac environment.
[[BR]][[BR]]
Apache:
{{{
WSGIPythonPath /var/trac-0.11dev/lib/python2.4/site-packages
ServerName hostname.domain
DAV svn
SVNParentPath /srv/trac/repos
SVNListParentPath Off
AuthType Basic
AuthName "Account Manager Auth"
AuthBasicProvider wsgi
WSGIAuthUserScript /path/to/script/acctmgr_auth.wsgi
Require valid-user
}}}
Settings of the acctmgr_auth.wsgi:
{{{
TRAC_REQUEST_LOCATION="/svn"
TRAC_ENV_PARENT="/srv/trac/envs"
PYTHON_EGG_CACHE="/path/to/eggs"
}}}
== Recent Changes ==
[[ChangeLog(modwsgiacctmgrscript, 3)]]
== Author/Contributors ==
'''Author:''' [wiki:pacopablo] [[BR]]
'''Maintainer:''' ''none'' [[BR]]
'''Contributors:'''