[Twisted-Python] PB auth with LDAP

Marvin McNett mmcnett at cs.ucsd.edu
Mon Sep 4 18:52:52 MDT 2006


Jean-Paul Calderone wrote:
> On Mon, 04 Sep 2006 11:02:57 -0700, Marvin McNett <mmcnett at cs.ucsd.edu> 
> wrote:
>> Hi,
>>
>> [snip]
>>
>> 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.
> 

Worked like a charm -- LDAP auth in PB without fetching passwords. Nice.

Thanks, Marvin




More information about the Twisted-Python mailing list