Changes between Version 60 and Version 61 of LdapPlugin
- Timestamp:
- May 19, 2013, 5:37:50 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LdapPlugin
v60 v61 40 40 41 41 == 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 43 Download the zipped source from [download:ldapplugin here]. 44 45 == Source == 46 47 You can check out LdapPlugin from [http://trac-hacks.org/svn/ldapplugin here] using Subversion, or [source:ldapplugin browse the source] with Trac. 53 48 54 49 == Configuration == … … 79 74 80 75 {{{ 76 #!apache 81 77 <Location /trac/project> 82 78 PythonOption TracEnv "/local/var/trac/project" … … 96 92 97 93 {{{ 94 #!apache 98 95 <Location /trac/project> 99 96 PythonOption TracEnv "/local/var/trac/project" … … 124 121 125 122 {{{ 123 #!ini 126 124 [components] 127 125 ldapplugin.* = enabled … … 131 129 132 130 {{{ 131 #!ini 133 132 [ldap] 134 133 # enable LDAP support for Trac … … 186 185 187 186 {{{ 187 #!ini 188 188 [ldap] 189 189 enable = true … … 195 195 196 196 {{{ 197 #!ini 197 198 [ldap] 198 199 enable = true … … 209 210 If you get an error message like this: 210 211 {{{ 212 #!sh 211 213 File "build/bdist.linux-x86_64/egg/ldapplugin/api.py", line 106, in get_permission_groups 212 214 TypeError: __init__() keywords must be strings … … 221 223 * `ou=people,dc=example,dc=org` would require the following settings: 222 224 {{{ 225 #!ini 223 226 basedn = dc=example,dc=org 224 227 user_rdn = ou=people … … 226 229 * `ou=groups,dc=example,dc=org` would require the following settings: 227 230 {{{ 231 #!ini 228 232 basedn = dc=example,dc=org 229 233 group_rdn = ou=groups … … 238 242 239 243 {{{ 244 #!ini 240 245 [ldap] 241 246 group_bind = true … … 249 254 250 255 {{{ 256 #!ini 251 257 [ldap] 252 258 store_bind = true … … 273 279 274 280 {{{ 281 #!ini 275 282 [trac] 276 283 # ... … … 280 287 You also need to enable `LdapPermissionStore` for LdapPlugin by adding: 281 288 {{{ 289 #!ini 282 290 [components] 283 291 ldapplugin.* = enabled … … 315 323 One would grant the above permissions using the following `trac-admin` commands 316 324 {{{ 325 #!sh 317 326 permission add @managers WIKI_ADMIN 318 327 permission add @managers TICKET_ADMIN … … 342 351 Example: 343 352 {{{ 353 #!sh 344 354 Trac [/var/local/db/trac/public]> permission list 345 355 … … 389 399 With such an environment, your [ldap] section would contain 390 400 {{{ 401 #!ini 391 402 [ldap] 392 403 ... … … 408 419 With such an environment, your [ldap] section would contain 409 420 {{{ 421 #!ini 410 422 [ldap] 411 423 ... … … 419 431 420 432 {{{ 433 #!apache 421 434 <Location /trac/project> 422 435 ... … … 446 459 It is still possible to use global permissions by setting in the `[ldap]` section of the environment configuration file: 447 460 {{{ 461 #!ini 448 462 global_perms = true 449 463 }}} … … 471 485 The following permission command 472 486 {{{ 487 #!sh 473 488 permission add eblot @developers 474 489 }}}