| 74 | |
| 75 | === Apache 2.2 === |
| 76 | |
| 77 | Since the mod_auth_ldap module has been superseded by the mod_authnz_ldap module for Apache 2.2, the configuration also needs a little tweaking. The above example would now look like: |
| 78 | |
| 79 | {{{ |
| 80 | <Location /trac/project> |
| 81 | PythonOption TracEnv "/local/var/trac/project" |
| 82 | PythonOption TracUriRoot "/trac/project" |
| 83 | AuthType Basic |
| 84 | AuthName "Project" |
| 85 | AuthBasicProvider ldap |
| 86 | Order Allow,Deny |
| 87 | Allow from All |
| 88 | AuthLDAPURL "ldap://localhost:389/dc=example,dc=org?uid" |
| 89 | AuthzLDAPAuthoritative on |
| 90 | Require group cn=tracusers,dc=example,dc=org |
| 91 | </Location> |
| 92 | }}} |
| 93 | |
| 94 | Note that if you just use "Require valid-user" (to allow everybody with a valid LDAP login to access trac) you must set "AuthzLDAPAuthoritative off" according to the Apache documentation. |
| 95 | |