Modify

Opened 11 years ago

Closed 4 years ago

Last modified 4 years ago

#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 trac
  • SVNParentPath: same as SVNParentPath set for the svn DAV
  • SVNUriRoot: 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)

modauthacctmgrscript-multi_trac.patch (1.4 KB) - added by David Sharp 11 years ago.
modauthacctmgrscript-multi_trac.2.patch (1.5 KB) - added by anonymous 11 years ago.
version 2
modauthacctmgrscript-multi_trac-r2265.patch (1.6 KB) - added by David Sharp 10 years ago.
Patch against r2265

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by David Sharp

Changed 11 years ago by anonymous

version 2

comment:1 Changed 11 years ago by anonymous

New patch statically allows repository listing, whereas it caused a 500 error before (oops).

Changed 10 years ago by David Sharp

Patch against r2265

comment:2 Changed 4 years ago by Ryan J Ollos

Cc: Steffen Hoffmann added; anonymous removed
Resolution: wontfix
Status: newclosed

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 4 years ago by Steffen Hoffmann

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.

comment:4 Changed 4 years ago by Ryan J Ollos

Thanks, I added a notice to the project page.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.