On Feb 7, 2008 5:11 PM, JoeNMDA <[EMAIL PROTECTED]> wrote:

>
> On Feb 7, 11:57 am, Noah Kantrowitz <[EMAIL PROTECTED]> wrote:
> >
> > You are trying to do things 400 different ways at once. What do you
> > actually want? HTTP auth or form-based?
> >
> > --Noah
>
> Form based auth using an ldap source.
>


I was able to make form based auth using an ldap source.

I think the problem is that you are using <Directory ...> directive with
your project url.
You have to use a diferent url for auth. Something like this:

-- trac.ini --
[account-manager]
authentication_url = http://myserver/anyexistingdir/index.html
password_store = HttpAuthStore

-- http.conf --
<Location /trac/myproject>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/www/trac-projects/myproject
PythonOption TracUriRoot /trac/myproject
SetEnv PYTHON_EGG_CACHE /your/temp/path
</Location>

...

<Directory "/var/www/htdocs/anyexistingdir">
AuthBasicProvider ldap
AuthType Basic
AuthzLDAPAuthoritative off
AuthName "GIS Server"
AuthLDAPURL
ldap://myldapstuff:389/dc=ldapstuff?sAMAccountName?sub?(objectClass=*)
AuthLDAPBindDN "ldapuser"
AuthLDAPBindPassword ldappassword
Require valid-user
</Directory>

make sure that exists an index.html in "/var/www/htdocs/anyexistingdir".

Hope it helps!

Bráulio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to