wiki:SvnAuthzAdminPlugin

SvnAuthzAdminPlugin: Authz 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.

Install, Download and Source

For installation, refer to TracPlugins.

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.

There is a read_only_display option that, when enabled, prevents any changes to the authz_file being made. There is also a show_all_repos option to show all repo paths contained in the authz_file.

[components]
svnauthz.* = enabled 

[svnauthzadmin]
show_all_repos = true
read_only_display = false

This plugin requires Trac 0.12 or later, and uses the repo names reported in the Version Control | Repositories admin panel to determine which repos to display when the show_all_repos option is set to false (default).

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
Maintainer: rjollos
Contributors: Dennis McRitchie

Last modified 3 months ago Last modified on Jan 8, 2014 7:55:40 AM

Attachments (1)

Download all attachments as: .zip