Changes between Version 3 and Version 4 of TracFineGrainedPermissions


Ignore:
Timestamp:
Apr 13, 2010, 3:53:03 AM (15 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracFineGrainedPermissions

    v3 v4  
    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 ==
     
    1816 - 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`:
    20    1. modify the [TracIni#trac-section permission_policies] entry in the `[trac]` section
    2118{{{
    2219[trac]
    2320...
    2421permission_policies = AuthzPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy
    25 }}}
    26    2. add a new `[authz_policy]` section
    27 {{{
     22
    2823[authz_policy]
    2924authz_file = /some/trac/env/conf/authzpolicy.conf
    30 }}}
    31    3. enable the single file plugin
    32 {{{
     25
    3326[components]
    3427...
    35 authz_policy.* = enabled
     28authz_policy = enabled
    3629}}}
    3730
     
    7164
    7265That kind of fine-grained permission control needs a definition file, which is the one used by Subversion's mod_authz_svn.
    73 More information about this file format and about its usage in Subversion is available in the  [http://svnbook.red-bean.com/en/1.5/svn.serverconfig.pathbasedauthz.html Path-Based Authorization] section in the Server Configuration chapter of the svn book.
     66More information about this file format and about its usage in Subversion is available in the [http://svnbook.red-bean.com/svnbook/book.html#svn-ch-6-sect-4.4.2 Subversion Book (Per-Directory Access Control)].
    7467
    7568Example:
     
    9992}}}
    10093
    101 If you want to support the use of the `[`''modulename''`:/`''some''`/`''path''`]` syntax within the `authz_file`, add
     94if you want to support the use of the `[`''modulename''`:/`''some''`/`''path''`]` syntax within the `authz_file`, add
    10295
    10396{{{
     
    10598}}}
    10699
    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]}}}.
     100where ''modulename'' refers to the same repository indicated by the `repository_dir` entry in the `[trac]` section.
    118101
    119102'''Note:''' Usernames inside the Authz file __must__ be the same as those used inside trac.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png