Modify

Opened 8 years ago

Closed 16 months ago

Last modified 16 months ago

#895 closed enhancement (wontfix)

[patch] support for multi-trac with TracEnvParentDir

Reported by: whereami Owned by: coderanger
Priority: normal Component: ModAuthAcctmgrScript
Severity: normal Keywords:
Cc: hasienda 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 whereami 8 years ago.
modauthacctmgrscript-multi_trac.2.patch (1.5 KB) - added by anonymous 8 years ago.
version 2
modauthacctmgrscript-multi_trac-r2265.patch (1.6 KB) - added by whereami 7 years ago.
Patch against r2265

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by whereami

Changed 8 years ago by anonymous

version 2

comment:1 Changed 8 years ago by anonymous

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

Changed 7 years ago by whereami

Patch against r2265

comment:2 Changed 16 months ago by rjollos

  • Cc hasienda added
  • Resolution set to wontfix
  • Status changed from new to 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 16 months ago by hasienda

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 16 months ago by rjollos

Thanks, I added a notice to the project page.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coderanger. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.