Edgewall Software

Changes between Version 102 and Version 103 of TracModPython


Ignore:
Timestamp:
Apr 19, 2007, 2:18:16 AM (17 years ago)
Author:
hudsonfas@…
Comment:

Comment on Microsoft Windows 2003/Server Active Directory

Legend:

Unmodified
Added
Removed
Modified
  • TracModPython

    v102 v103  
    5353
    5454Configuration for mod_ldap authentication in Apache is a bit tricky (httpd 2.2.x and OpenLDAP: slapd 2.3.19)
     55
     561. You need to load the following modules in Apache httpd.conf
     57{{{
     58LoadModule ldap_module modules/mod_ldap.so
     59LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
     60}}}
     61
     622. Your httpd.conf also needs to look something like:
    5563
    5664{{{
     
    7179</Location>
    7280}}}
     81
     82Or the LDAP interface to a Microsoft Active Directory:
     83
     84{{{
     85<Location /trac/>
     86  SetHandler mod_python
     87  PythonHandler trac.web.modpython_frontend
     88  PythonOption TracEnv /home/trac/
     89  PythonOption TracUriRoot /trac/
     90  Order deny,allow
     91  Deny from all
     92  Allow from 192.168.11.0/24
     93  AuthType Basic
     94  AuthName "Trac"
     95  AuthBasicProvider "ldap"
     96  AuthLDAPURL "ldap://adserver.company.com:3268/DC=ad,DC=company,DC=com?sAMAccountName?sub?(objectClass=user)"
     97  authzldapauthoritative Off
     98  require valid-user
     99</Location>
     100}}}
     101
     102PS: This is the case where the LDAP search will get around the multiple OUs, conecting to Global Catalog Server portion of AD. The GCS is basically a "flattened" tree which allows searching for a user without knowing to which OU they belong. Notice the port is 3268, not the normal LDAP 389.
     103
    73104
    74105=== Setting the !PythonPath ===