ciao!

Premetto che non ho avuto bisogno di twisted fino ad oggi, forse non ho
letto a sufficienza la documentazione.

Vorrei sostituire una dipedenza da python-ldap con twisted+ldaptor, per
restare in pure-python

Ldaptor e' ancora "vivo", giusto?

Lo userei solamente per search e bind, nell'autenticazione degli utenti.
Dovrei quindi eseguire una chiamata a LDAP, ma una volta ottenuta la
deferred con

connector = ldapconnector.LDAPClientCreator(reactor, ldapclient.LDAPClient)
d = connector.connectAnonymously(dn, {dn: (hostname, 10389)})

come faccio ad attendere il risultato?

Usavo le deferred con MochiKit e mi e' chiaro il funzionamento, ma in
questo caso sono dentro a un IdentityProvider di TurboGears e temo che
l'unico modo sia simulare un'operazione sincrona.


grazie

-- 
This e-mail (and any attachment(s)) is strictly confidential and for use only 
by intended recipient(s). Any use, distribution, reproduction or disclosure by 
any other person is strictly prohibited. The content of this e-mail does not 
constitute a commitment by the Company except where provided for in a written 
agreement between this e-mail addressee and the Company. If you are not an 
intended recipient(s), please notify the sender promptly and destroy this 
message and its attachments without reading or saving it in any manner. Any non 
authorized use of the content of this message constitutes a violation of the 
obligation to abstain from learning of the correspondence among other subjects, 
except for more serious offence, and exposes the person responsible to the 
relevant consequences.

_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a