| 44 | </Location> |
| 45 | }}} |
| 46 | |
| 47 | Configuration for mod_ldap authentication in Apache is a bit tricky (httpd 2.2.x and OpenLDAP: slapd 2.3.19) |
| 48 | |
| 49 | {{{ |
| 50 | <Location /trac/> |
| 51 | SetHandler mod_python |
| 52 | PythonHandler trac.web.modpython_frontend |
| 53 | PythonOption TracEnv /home/trac/ |
| 54 | PythonOption TracUriRoot /trac/ |
| 55 | Order deny,allow |
| 56 | Deny from all |
| 57 | Allow from 192.168.11.0/24 |
| 58 | AuthType Basic |
| 59 | AuthName "Trac" |
| 60 | AuthBasicProvider "ldap" |
| 61 | AuthLDAPURL "ldap://127.0.0.1/dc=example,dc=co,dc=ke?uid?sub?(objectClass=inetOrgPerson)" |
| 62 | authzldapauthoritative Off |
| 63 | require valid-user |