#895 closed enhancement (wontfix)
[patch] support for multi-trac with TracEnvParentDir
| Reported by: | David Sharp | Owned by: | Noah Kantrowitz |
|---|---|---|---|
| Priority: | normal | Component: | ModAuthAcctmgrScript |
| Severity: | normal | Keywords: | |
| Cc: | Steffen Hoffmann | Trac Release: | 0.9 |
Description
As discussed on IRC, it is desirable to have multiple projects to authenticate against without using multiple <Location> directives in your apache configuration. This patch adds three PythonOptions to guess the correct Trac environment based on the request URI:
TracEnvParentDir: same as that set for tracSVNParentPath: same as SVNParentPath set for the svn DAVSVNUriRoot: same as the path used in the <Location> for the svn DAV
Sample apache config
<Location /svn>
DAV svn
SVNParentPath /var/lib/svn
SVNListParentPath on
AuthType Basic
AuthName "Subversion repository"
PythonAuthenHandler mod_auth_acctmgr.handler
PythonOption TracEnvParentDir /var/lib/trac
PythonOption SVNParentPath /var/lib/svn
PythonOption SVNUriRoot /svn
Require valid-user
</Location>
Attachments (3)
Change History (7)
Changed 19 years ago by
| Attachment: | modauthacctmgrscript-multi_trac.patch added |
|---|
Changed 19 years ago by
| Attachment: | modauthacctmgrscript-multi_trac.2.patch added |
|---|
comment:1 Changed 19 years ago by
New patch statically allows repository listing, whereas it caused a 500 error before (oops).
Changed 18 years ago by
| Attachment: | modauthacctmgrscript-multi_trac-r2265.patch added |
|---|
Patch against r2265
comment:2 Changed 13 years ago by
| Cc: | Steffen Hoffmann added; anonymous removed |
|---|---|
| Resolution: | → wontfix |
| Status: | new → closed |
I've marked this plugin is deprecated since it's my understanding that mod_python isn't recommended for newer versions of Trac.
comment:3 Changed 13 years ago by
Another plugin related to AccountManagerPlugin, that I wasn't aware of before. Thanks for the hint.
And sure, this should be depreciated for now. And it encourages me to stay on the road of integration. We've a bit too many pieces scattered across trac-hacks repository for them to get notices and used by someone in need of the corresponding functionality these days.



version 2