[Twisted-Python] PB auth with LDAP
exarkun at divmod.com
Mon Sep 4 14:16:54 EDT 2006
On Mon, 04 Sep 2006 11:02:57 -0700, Marvin McNett <mmcnett at cs.ucsd.edu> wrote:
>from twisted.cred import credentials
>from twisted.spread.pb import *"
>then overriding the _PortalRoot, _PortalWrapper, and _PortalAuthChallenger
>classes, and registering the alternate adapter. However, the
>"registerAdapter(_PortalRoot, Portal, IPBRoot)" comes back to bite me with:
> exceptions.ValueError: an adapter (twisted.spread.pb._PortalRoot) was
>unless I comment it out in the actual twisted.spread.pb.py file. Is there a
>way to unregister an adapter? I'm sure there's a better way of doing this
>since I've seen mention of writing alternate login sequences, but I haven't
>been smart enough to figure it out. Any help would be appreciated.
Instead of registering another adapter, instantiate your _PortalRoot class
directly and pass that to PBServerFactory.
More information about the Twisted-Python