Changes between Version 60 and Version 61 of LdapPlugin


Ignore:
Timestamp:
May 19, 2013 7:37:50 AM (16 months ago)
Author:
rjollos
Comment:

Added syntax highlighting.

Legend:

Unmodified
Added
Removed
Modified
  • LdapPlugin

    v60 v61  
    4040 
    4141== Download == 
    42   
    43  * Source code is available from http://trac-hacks.org/svn/ldapplugin. 
    44  * You can also find unit tests at the same location - under the `tests` directory -, which may help you deploy the plugin. 
    45  
    46 == Installation == 
    47    
    48  * Build the ''egg'' file following the plugin packaging instructions. Essentially doing the followings 
    49   * tar xvfz ldapplugin_0.11_patched.tar.gz 
    50   * cd ldapplugin_0.11_patched 
    51   * python setup.py bdist_egg 
    52  * Copy the `dist/LdapPlugin-0.y.z-py2.n.egg` file in your ''plugins'' project directory. 
     42 
     43Download the zipped source from [download:ldapplugin here]. 
     44 
     45== Source == 
     46 
     47You can check out LdapPlugin from [http://trac-hacks.org/svn/ldapplugin here] using Subversion, or [source:ldapplugin browse the source] with Trac. 
    5348 
    5449== Configuration == 
     
    7974 
    8075{{{ 
     76#!apache 
    8177<Location /trac/project> 
    8278   PythonOption TracEnv "/local/var/trac/project" 
     
    9692 
    9793{{{ 
     94#!apache 
    9895<Location /trac/project> 
    9996   PythonOption TracEnv "/local/var/trac/project" 
     
    124121 
    125122{{{ 
     123#!ini 
    126124[components] 
    127125ldapplugin.* = enabled 
     
    131129 
    132130{{{ 
     131#!ini 
    133132[ldap] 
    134133# enable LDAP support for Trac 
     
    186185 
    187186{{{ 
     187#!ini 
    188188[ldap] 
    189189enable = true 
     
    195195 
    196196{{{ 
     197#!ini 
    197198[ldap] 
    198199enable = true 
     
    209210If you get an error message like this: 
    210211{{{ 
     212#!sh 
    211213File "build/bdist.linux-x86_64/egg/ldapplugin/api.py", line 106, in get_permission_groups 
    212214TypeError: __init__() keywords must be strings 
     
    221223  * `ou=people,dc=example,dc=org` would require the following settings: 
    222224{{{ 
     225#!ini 
    223226basedn = dc=example,dc=org 
    224227user_rdn = ou=people 
     
    226229  * `ou=groups,dc=example,dc=org` would require the following settings: 
    227230{{{ 
     231#!ini 
    228232basedn = dc=example,dc=org 
    229233group_rdn = ou=groups 
     
    238242 
    239243{{{ 
     244#!ini 
    240245[ldap] 
    241246group_bind = true 
     
    249254 
    250255{{{ 
     256#!ini 
    251257[ldap] 
    252258store_bind = true 
     
    273279 
    274280{{{ 
     281#!ini 
    275282[trac] 
    276283# ... 
     
    280287You also need to enable `LdapPermissionStore` for LdapPlugin by adding: 
    281288{{{ 
     289#!ini 
    282290[components] 
    283291ldapplugin.* = enabled 
     
    315323One would grant the above permissions using the following `trac-admin` commands 
    316324{{{ 
     325#!sh 
    317326permission add @managers WIKI_ADMIN 
    318327permission add @managers TICKET_ADMIN 
     
    342351Example: 
    343352{{{ 
     353#!sh 
    344354Trac [/var/local/db/trac/public]> permission list 
    345355 
     
    389399   With such an environment, your [ldap] section would contain 
    390400{{{ 
     401#!ini 
    391402[ldap] 
    392403... 
     
    408419   With such an environment, your [ldap] section would contain 
    409420{{{ 
     421#!ini 
    410422[ldap] 
    411423... 
     
    419431 
    420432{{{ 
     433#!apache 
    421434<Location /trac/project> 
    422435   ... 
     
    446459It is still possible to use global permissions by setting in the `[ldap]` section of the environment configuration file: 
    447460{{{ 
     461#!ini 
    448462global_perms = true 
    449463}}} 
     
    471485The following permission command 
    472486{{{ 
     487#!sh 
    473488permission add eblot @developers 
    474489}}}