Changes between Version 8 and Version 9 of DirectoryAuthPlugin/ConfigurationExamples


Ignore:
Timestamp:
Dec 10, 2016, 8:26:23 PM (7 years ago)
Author:
bebbo
Comment:

added Bebbo's example config

Legend:

Unmodified
Added
Removed
Modified
  • DirectoryAuthPlugin/ConfigurationExamples

    v8 v9  
    6363
    6464If you are unsure of what the DNs for your groups are, you may want to use an LDAP browser to inspect your Active Directory schema to find out a group's DN.
     65
     66== Bebbo's Example config
     67
     68{{{
     69[account-manager]
     70# my domain
     71dir_basedn = dc=foo,dc=bar
     72
     73# my system user to use the ldap directory. This system user may read the whole trac tree in the LDAP server.
     74dir_binddn = uid=systrac,ou=people,dc=foo,dc=bar
     75dir_bindpw = veryVERY_S_E_C_R_E_T!1elf!
     76
     77# my ldap server is running on same host as trac
     78dir_uri = ldap://127.0.0.1:389
     79
     80# I am using some 'standard' LDAP server, no Active Directory
     81group_class_attr = groupOfUniqueNames
     82member_attr = uniqueMember
     83name_attr = displayName
     84user_attr = uid
     85
     86# and I am using the full dn of groups
     87group_nameattr = dn
     88
     89# below here are my trac specific groups
     90group_basedn = ou=trac,ou=groups,dc=foo,dc=bar
     91
     92# and this is the group for all trac users
     93group_validusers = @cn=user,ou=trac,ou=groups,dc=foo,dc=bar
     94
     95...
     96
     97[trac]
     98...
     99permission_store = UserExtensiblePermissionStore
     100...
     101
     102}}}
     103
     104* restart trac
     105
     106Now you need a LDAP user who is a uniqueMember of the validusers group cn=user,ou=trac,ou=groups,dc=foo,dc=bar. Use this user for login.
     107
     108If this is working, stop trac and use trac-admin to give your user admin rights:
     109{{{
     110   trac-admin <tracinstance>
     111   permission add <username> TRAC_ADMIN
     112   quit
     113}}}
     114
     115* restart trac
     116
     117After login your user has admin rights. Assign the TRAC_ADMIN permission to the group @cn=admin,ou=trac,ou=groups,dc=foo,dc=bar to grant TRAC_ADMIN to all users in that group: Use 'grant permssion', 'Action:' "TRAC_ADMIN", 'Subject:': "@cn=admin,ou=trac,ou=groups,dc=foo,dc=bar" and click add.
     118
     119
     120
     121