Thanks Adam. We eventually solved the problem by looking at the live
LDAP log while trying to log in. The problem was caused by the filter
setting that was used to connect to the LDAP server. In
soldapprovider.py the filter is set use sAMAccountName. Somehow this
was being passed as a blank filter setting to the LDAP server. This
server was set to authenticate on uid and not sAMAccountName. Simply by
changing that line the script worked.

So for completeness sake here follows our steps:
1. Save the soldapprovider.py file to turbogears/identity/.
2. Edit your TG setup.py and include the following in the section under
[turbogears.identity.provider].
soldap = turbogears.identity.soldapprovider:SoLdapIdentityProvider
3. Rebuild TG.
4. In your project edit app.cfg and add the following:
identity.provider="soldapprovider"
identity.soldapprovider.host = "hostname"
identity.soldapprovider.basedn = "basedn settings seperated by commas"
identity.soldapprovider.autocreate = "True"
5. All the users that want to authenticate through LDAP must have an
entry in tg_user table on your local machine. Do not put in any
passwords in.
6. Run your project.

The part about the user are a bit strange. We thought that the
autocreate settin would populate the database for you, but the again we
didn't go into this. We simply added a user without a password into
tg_user with Catwalk.

Hope this helps other people as well.

Tjaart


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to