Hi,

I would like to implement an automatic registration after
authentication. The authentication is not done against a database, but
an ldap tree (active directory), using repoze.who.plugins.ldap.
I want to create a new entry in the User table, which is stored in the
DB, after a successful authentication, if the user is not already in
the DB.

- Can I use the User table which is automatically created by
quickstart? Is there any modification to add?
- From tg doc / google, I should add the auto registration in the
metadata provider. Here is best link I've found:
http://turbogears.org/2.1/docs/main/Auth/OpenID.html
Unfortunately, the method register_user is never called, and is not
redefined from repoze.who.interfaces.IMetadataProvider, that's why I
can not clearly induce the parameters type nor meaning.

So, is there any guidelines/howto to achieve that? Is the openid a
good example to start with? Should I subclass
repoze.who.plugins.ldap.LDAPAttributesPlugin ?

Thanks a lot!


-- 
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