Changes between Version 1 and Version 2 of TracFineGrainedPermissions


Ignore:
Timestamp:
Nov 13, 2011, 3:47:26 AM (13 years ago)
Author:
trac
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracFineGrainedPermissions

    v1 v2  
    1010
    1111An example policy based on an Authz-style system has been added. See
    12 [source:trunk/sample-plugins/permissions/authz_policy.py] for details. (See also [source:trunk/sample-plugins/permissions] for more samples.)
     12[trac:source:branches/0.11-stable/sample-plugins/permissions/authz_policy.py authz_policy.py] for details (current version requires >= Python 2.4). (See also [trac:source:branches/0.11-stable/sample-plugins/permissions sample-plugins/permissions] for more samples.)
    1313
    1414 - Install [http://www.voidspace.org.uk/python/configobj.html ConfigObj] (required).
     
    1616 - 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.
    1717 - Update your `trac.ini`:
     18   1. modify the [TracIni#trac-section permission_policies] entry in the `[trac]` section
    1819{{{
    1920[trac]
    2021...
    2122permission_policies = AuthzPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy
    22 
     23}}}
     24   2. add a new `[authz_policy]` section
     25{{{
    2326[authz_policy]
    2427authz_file = /some/trac/env/conf/authzpolicy.conf
    25 
     28}}}
     29   3. enable the single file plugin
     30{{{
    2631[components]
    2732...
    28 authz_policy = enabled
     33authz_policy.* = enabled
    2934}}}
    3035
     
    6166=== mod_authz_svn-like permission policy ===
    6267
    63 At the time of this writing, the old fine grained permissions system from Trac 0.10 and before used for restricting access to the repository has not yet been converted to a permission policy component, but from the user point of view, this makes little if no differences.
     68At the time of this writing, the old fine grained permissions system from Trac 0.10 and before used for restricting access to the repository has not yet been converted to a permission policy component, but from the user point of view, this makes little if no difference.
    6469
    6570That kind of fine-grained permission control needs a definition file, which is the one used by Subversion's mod_authz_svn.
    66 More 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)].
     71More 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.
    6772
    6873Example:
     
    117122For information about how to restrict access to entire projects in a multiple project environment see [trac:wiki:TracMultipleProjectsSVNAccess]
    118123
     124== Getting TracFineGrainedPermissions to work ==
     125
     126Don't forget to restart Trac engine to apply new configuration if you are running tracd standalone server.
     127
    119128----
    120129See also: TracPermissions
     130http://trac-hacks.org/wiki/FineGrainedPageAuthzEditorPlugin for a simple editor plugin.