wiki:SuperUserPlugin

Super User Plugin

Description

This plugin automatically gives a given username TRAC_ADMIN permissions. This is useful for a multiproject setup with AccountManagerPlugin, where users and passwords are shared between all projects, and there should be an admin user with full permissions without manually setting it on every project.

The plugin works by wrapping the current PermissionStore, in order to fake the superuser permissions. Permissions are not added to the database, but added on the fly when requested.

Bugs/Feature Requests

Existing bugs and feature requests for SuperUserPlugin are here.

If you have any issues, create a new ticket.

defect

1 / 1

enhancement

1 / 1

Download

Download the zipped source from here.

Source

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

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Configuration

To enable the plugin, add the following line to your trac.ini file:

[components]
tracsuperuser.* = enabled

Then, replace the current PermissionStore. In this example DefaultPermissionStore was used before installing the superuser plugin:

[trac]
...
permission_store = SuperUserPlugin
...

[superuser]
superuser = admin
wrapped_permission_store = DefaultPermissionStore
...

Where:

  • permission_store: Use SuperUserPlugin as the new permission store.
  • supersuser: The name of the user with admin permissions.
  • wrapped_permission_store: The permission store being used previously. If the user is not the superuser, this permission store will be used to retrieve the user permissions.

Recent Changes

7514 by airadier on 2010-02-08 14:01:51
Support for multiple superusers (comma separated). Fixes #6546.
5675 by airadier on 2009-05-06 11:34:02
Avoid returning duplicates in permissions and users
5651 by airadier on 2009-04-30 14:15:57
Longer plugin description
(more)

Author/Contributors

Author: airadier
Maintainer: Álvaro Iradier
Contributors:

Last modified 13 months ago Last modified on Nov 26, 2015, 12:26:26 PM