wiki:SvnAuthzPatch

Patch for new subversion svn_authz format

Description

Trac can apply access control for souce code browser through the authz_file option. Yet svn_authz support is obsolete:

  • does not support [aliases] section
  • does not support $anonymous and $authenticated
  • if multiple rules are matched in one section, the maximum rights is returned. But that is not the case in Trac.

This patch adds aliases support, and fixes a bug of svn_authz support in Trac.

DocTest for svn_authz.py is also added.

Bugs/Feature Requests

Existing bugs and feature requests for SvnAuthzPatch are here.

If you have any issues, create a new ticket.

defect

1 / 1

Download

Download the zipped source from here.

Source

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

Example

To apply access control for subversion source browser, add the following lines in your trac.ini file:

[trac]
authz_file = /path/to/svn.access
## authz_module_name can be omited, if no reposname 
##     add in section name in authz_file.
authz_module_name = reposname

Recent Changes

5281 by jiangxin on 2009-02-17 11:21:02
remove unrelated file in patch
5280 by jiangxin on 2009-02-17 11:19:04
Fixed #4640: convert section name from unicode to utf-8, fixed this issue.
5279 by jiangxin on 2009-02-17 10:10:42
set charset to utf-8
(more)

Author/Contributors

Author: jiangxin
Maintainer: Jiang Xin
Contributors:

Last modified 13 months ago Last modified on Nov 12, 2015, 11:58:56 AM