[Zope3-Users] Re: Question: PAU, authentication, principal sources
luis
lparrab at gmx.net
Sun Apr 23 19:13:29 EDT 2006
Robert Boyd wrote:
[...]
> My question is, should I extend ldappas to make it into a
> principalfolder, or should I use it only for auth, and write my own
> PrincipalFolder (or should it be a PrincipalSource from
> pluggableauth??) When I read the docs, I get the impression that auth
> plugins are for authentication, and principals are defined separately.
> Yet the stock principal folder implements IAuthenticatorPlugin as well
> as being a place to store and create principals.
you need to use your LDAP-authenticator _instead_ of the PrincipalFolder
you have to make an utility which implements IAuthenticatorPlugin and
accepts a "login" and a "password"... with those you look in your LDAP, and
if they match you create and return a PrinicipalInfo object... so you dont
need a PrincipalFolder at all
I think I read somewhere that someone already did a LDAP-authenticator..so
you might want to do some more searching before you go on and write your
own.
cheers. luis
More information about the Zope3-users
mailing list