wiki:SvnAuthzAdminPlugin

Version 14 (modified by ThurnerRupert, 5 years ago) (diff)

SvnAuthzAdminPlugin now supports 0.11

Svnauthz File Administration Plugin

Description

This plugin registers a module into the WebAdmin to allow the configuration of the svnauthz file from the web inferface. It uses the AccountManager plugin to present the list of users.

The development of this plugin was sponsored by EU Edge LLC. See also TracSvnAuthzPlugin for editing the file without GUI.

Bugs/Feature Requests

Existing bugs and feature requests for SvnAuthzAdminPlugin are here.

If you have any issues, create a new ticket.

Download and Source

Download the zipped source, check out here using Subversion, or browse the source with Trac.

Example

It uses the authz_file setting from the [trac] section of trac.ini to find the svnauthz file. You may also set the authz_module_name in trac.ini should be left empty (this means you have to specify the complete path from the root of the filesystem). There is also an option to show all authz_module_names contained in the autz-file.

[components]
svnauthz.* = enabled 

[svnauthzadmin]
show_all_repos = true

parameter in the components part of the trac.ini The following screenshot shows the plugin in action:

Screenshot of SvnAuthzAdminPlugin

Recent Changes

[11873] by rjollos on 2012-08-01 06:34:25

Fixes #5689:

  • Added checks for non-empty group and path before attempting to add them. A warning is added if either are empty.
  • Extracted code to a method _get_authz.
  • Corrected tabs and indentation.
[11872] by rjollos on 2012-08-01 05:51:42
  • Degrade gracefully and add warning when authz_file is not defined.
  • Organized imports and removed some dead code.
[10612] by rjollos on 2011-08-20 03:51:17

Fixes #8165: Applied patch from Dennis McRitchie.

  1. Now uses v0.12 RepositoryManager? to retrieve the list of repos associated with this project. When show_all_repos is false, only these repos will be displayed.
  2. Now requires v0.12 or later to install.
  3. Supports new read_only_display option so as to provide users a view into their svn permissions without letting them change the authz_file. This is necessary because of the race condition described by ticket #5664.
  4. Supports an input text box to supplement the drop-down list when adding members to groups or repos. Needed for situations where access is being given to users that are not users of the Trac project.
  5. Now sorts the lists of groups and repos in a case-insensitive manner. Helpful when the list is very long, and one forgets that there is a second list starting with lower-case letters.
  6. Now sorts the lists of group and repo members.
  7. Fixed bug where the *:/ repo was sometimes not displayed first.
  8. Defines the 2 supported options with defaults and description strings within the plugin. This allows them to be easily displayed and modified via the "trac.ini Editor" plugin or other similar tools, and avoids the need for editing trac.ini manually.
  9. Now displays this plugin under the Version Control section of the admin interface menu.
  10. Revved package version to 0.2

Author/Contributors

Author: kisg
Contributors:

Attachments (1)

Download all attachments as: .zip