I used the instructions from http://trac.edgewall.org/wiki/TracModPython
and well I cant get Active Directory authentcation to work...
in /etc/apache2/sites-available/default :
<Location /trac>
SetHandler mod_python
PythonOption TracEnvParentDir "/var/www/trac/"
PythonHandler trac.web.modpython_frontend
AuthType Basic
AuthBasicProvider ldap
Order Allow,Deny
Allow from All
AuthName "Trac"
AuthLDAPURL "ldap://192.168.0.1:389/dc=mydomain-bc,dc=local?
sAMAccountName?sub?(objectClass=user)"
AuthLDAPBindDN te...@mydomain.local
AuthLDAPBindPassword test123
AuthzLDAPAuthoritative off
Require ldap-group OU=Users,OU=MyBusiness,DC=mydomain,DC=local
</Location>
I do get a pop-up asking for username / password.
when I enter a username like
login: test
password: test123
Then I do get this error in apache error.log:
access to /trac failed, reason: require directives present and no
Authoritative handler.
when I enter
login: test
password: notthecorrectpassword
Then Apache error.log says "Password Mismatch" - so apparently it did
communicate with the Active Directory
when I enter
login: thisuserdoesnotexist
password: whatever
Then Apache error.log says "user thisuserdoesnotexistnot found: /trac"
When I remove all authentication stuff I can see the Trac projects...
that part is setup correctly, just the authentication goes wrong...
any help?
Sergey.
On Jun 20, 3:09 pm, tracman <coenen....@gmail.com> wrote:
> hi all,
>
> I used the instructions fromhttp://trac.edgewall.org/wiki/TracModPython
> and well I cant get Active Directory authentcation to work...
>
> in /etc/apache2/sites-available/default :
>
> <Location /trac>
> SetHandler mod_python
> PythonOption TracEnvParentDir "/var/www/trac/"
> PythonHandler trac.web.modpython_frontend
> AuthType Basic
> AuthBasicProvider ldap
> Order Allow,Deny
> Allow from All
> AuthName "Trac"
> AuthLDAPURL "ldap://192.168.0.1:389/dc=mydomain-bc,dc=local?
> sAMAccountName?sub?(objectClass=user)"
> AuthLDAPBindDN t...@mydomain.local