[Twisted-Python] LDAP Checker
![](https://secure.gravatar.com/avatar/d4f20807cbdb2aa01088f2f5e7cc892d.jpg?s=120&d=mm&r=g)
Hi everybody, I'm learning Twisted, and already have a simple application running. I wante to experiment adding an LDAP checker to it. Is there any open source implementation of such a thing? I'm aware of LDAPtor, but I'm looking for some examples of integration with twisted.cred. Thanks, -- Manuel Aristarán <maristaran@gmail.com> Buenos Aires, Argentina
![](https://secure.gravatar.com/avatar/0b90087ed4aef703541f1cafdb4b49a1.jpg?s=120&d=mm&r=g)
Manuel Aristarán wrote:
I'm learning Twisted, and already have a simple application running. I wante to experiment adding an LDAP checker to it. Is there any open source implementation of such a thing? I'm aware of LDAPtor, but I'm looking for some examples of integration with twisted.cred.
So you are _not_ aware of ldaptor. ldaptor.checkers.LDAPBindingChecker is a Checker as used by twisted.cred.
![](https://secure.gravatar.com/avatar/05da5d08649c024887decc431fb2c55d.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tommi Virtanen ha scritto:
ldaptor.checkers.LDAPBindingChecker is a Checker as used by twisted.cred.
apropos this nice feature, it's possible not to make a connection every authentication made ? I simply setup a checker that way: ldapChecker = LDAPBindingChecker(ldaptor.config.LDAPConfig()) p.registerChecker(ldapChecker) and everything's ok, apart for the connections list that keeps growing. Patching adding a pair of unbind() would be easy, but maybe there is a best practice to implement. i'm using 0.0.42 TIA, - -- Alessandro Ogier <alessandro.ogier@unimib.it> gpg --keyserver pgp.mit.edu --recv-keys EEBB4D0D Universita` degli Studi di Milano - Bicocca Sistemi Informativi Via Cozzi 53 - I 20125 Milano Italy Tel. +39 02 6448 5526 -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAkNvUggACgkQZmjYv+67TQ0uBwCfYXgmPfR7MNniqRdgYB/hKqhn mpAAnjmC+vatV3ebn47p5lW+jSLfH6rO =6Ypt -----END PGP SIGNATURE-----
participants (3)
-
Alessandro Ogier
-
Manuel Aristarán
-
Tommi Virtanen