On 13 Aug., 17:36, frankentux <[email protected]> wrote:
> Does anyone know of a full working example of how to configure
> turbogears2 to use LDAP to authenticate users?
> What I would like to do is to use an existing LDAP server for pure
> authentication and then to link the authenticated username against my
> model.User. That way, the users uname and password are centrally
> managed (the LDAP server is used for authentication for many services)
> but I could add application specific meta information to the user
> object as soon as the user logs in.
>
> I've gotten as far as trying to edit the app_cfg.py file using the
> information from:
>
> http://code.gustavonarea.net/repoze.who.plugins.ldap/Using.htmlhttp://www.mail-archive.com/[email protected]/msg39644.html
>
> but I can't get it working. Currently, I'm getting something like:
> ValueError: ldap_auth: An object has failed to implement interface
> <InterfaceClass repoze.who.interfaces.IChallenger>
>         The challenge attribute was not provided.
>
> What would be really helpful in the documentation is an example of how
> to configure the app_cfg.py file for LDAP authentication using the
> repoze.who.plugins.ldap  plugin.

I didn't see that repoze.who.plugins.ldap already carries a full
working tg2 example in the demo subdirectory. Silly me.
On the other hand, I'm now having trouble getting my project based on
the demo working. Now get this error:
UndefinedError: <Request at 0x1f6f0d0 GET http://localhost:8080/> has
no member named "identity"

The files are exactly as they are in the repoze.who.plugins.ldap demo
project (except for changing the values in the who.ini file of
course).
Any idea of what may be causing this?


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to