Changes between Version 1 and Version 2 of TracFineGrainedPermissions


Игнорировать:
Время:
21 июн. 2010 г., 16:31:21 (16 лет назад)
Автор:
trac
Комментарий:

--

Обозначения:

Без изменений
Добавлено
Удалено
Изменено
  • TracFineGrainedPermissions

    v1 v2  
    44
    55Since 0.11, there's a general mechanism in place that allows custom permission policy plugins to grant or deny any action on any kind of Trac resources, even at the level of specific versions of such resources.
    6 
    7 Note that for Trac 0.12, `authz_policy` has been integrated in trunk branch as `tracopt.perm.authz_policy.*`
    86
    97== Permission Policies ==
     
    1614 - Install [http://www.voidspace.org.uk/python/configobj.html ConfigObj] (required).
    1715 - Copy authz_policy.py into your plugins directory.
    18  - Put a [http://swapoff.org/files/authzpolicy.conf authzpolicy.conf] file somewhere, preferably on a secured location on the server, not readable for others than the webuser. If the  file contains non-ASCII characters, the UTF-8 encoding should be used.
     16 - Put a [http://swapoff.org/files/authzpolicy.conf authzpolicy.conf] file somewhere (preferably on a secured location on the server, not readable for others than the webuser.
    1917 - Update your `trac.ini`:
    2018   1. modify the [TracIni#trac-section permission_policies] entry in the `[trac]` section
     
    9997}}}
    10098
    101 If you want to support the use of the `[`''modulename''`:/`''some''`/`''path''`]` syntax within the `authz_file`, add
     99if you want to support the use of the `[`''modulename''`:/`''some''`/`''path''`]` syntax within the `authz_file`, add
    102100
    103101{{{
     
    105103}}}
    106104
    107 where ''modulename'' refers to the same repository indicated by the `repository_dir` entry in the `[trac]` section. As an example, if the `repository_dir` entry in the `[trac]` section is {{{/srv/active/svn/blahblah}}}, that would yield the following:
    108 
    109 {{{
    110 [trac]
    111 authz_file = /path/to/svnaccessfile
    112 authz_module_name = blahblah
    113 ...
    114 repository_dir = /srv/active/svn/blahblah
    115 }}}
    116 
    117 where the svn access file, {{{/path/to/svnaccessfile}}}, contains entries such as {{{[blahblah:/some/path]}}}.
     105where ''modulename'' refers to the same repository indicated by the `repository_dir` entry in the `[trac]` section.
    118106
    119107'''Note:''' Usernames inside the Authz file __must__ be the same as those used inside trac.
     
    139127
    140128----
    141 See also: TracPermissions,
    142 [http://trac-hacks.org/wiki/FineGrainedPageAuthzEditorPlugin TracHacks:FineGrainedPageAuthzEditorPlugin] for a simple editor plugin.
     129See also: TracPermissions
     130http://trac-hacks.org/wiki/FineGrainedPageAuthzEditorPlugin for a simple editor plugin.