Movatterモバイル変換


[0]ホーム

URL:


Trac Hacks
wiki:SuperUserPlugin

Context Navigation


Contents

  1. Description
  2. Bugs/Feature Requests
  3. Download
  4. Source
  5. Installation
  6. Configuration
  7. Recent Changes
  8. Author/Contributors

Add administrator privileges to a given user

Description

This plugin automatically gives a given usernameTRAC_ADMIN permissions. This is useful for a multiproject setup withAccountManagerPlugin, where users and passwords are shared between all projects, and there should be anadmin 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 addedon the fly when requested.

Bugs/Feature Requests

Existing bugs and feature requests forSuperUserPlugin arehere.

If you have any issues, create anew ticket.

defect

1 / 1

enhancement

1 / 1

Download

Download the zipped source fromhere.

Source

You can check outSuperUserPlugin fromhere using Subversion, orbrowse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on theTracPlugins page.

Configuration

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

[components]tracsuperuser.*=enabled

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

[trac]...permission_store=SuperUserPlugin...[superuser]superuser=adminwrapped_permission_store=DefaultPermissionStore...

Where:

  • permission_store: UseSuperUserPlugin 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

17128 byrjollos on 2018-04-16 08:41:36
tracsuperuser 0.4: Conform toPEP8
7514 byairadier on 2010-02-08 13:01:51
Support for multiple superusers (comma separated). Fixes#6546.
5675 byairadier on 2009-05-06 09:34:02
Avoid returning duplicates in permissions and users
(more)

Author/Contributors

Author:airadier
Maintainer:Álvaro Iradier
Contributors:

Last modified7 years agoLast modified on Jan 16, 2018, 7:13:10 AM

Download in other formats:


Trac Powered

Powered byTrac 1.2.6
ByEdgewall Software.


[8]ページ先頭

©2009-2025 Movatter.jp