Re: ldif.py won't parse with 'python -tt'

2010-03-29 Thread Michael Ströder
John Morrissey wrote: > ldif.py won't parse with the python option '-tt', which enforces consistent > whitespace. It's a simple fix of replacing the handful of tabs with spaces. Thanks for reporting that. Should be fixed in HEAD now. Ciao, Michael. ---

Re: [SPAM] Re: CONNECTING FROM A SERVERS POOL

2010-03-29 Thread Michael Ströder
HI! For simple synchronous operations there is ldap.ldapobject.ReconnectLDAPObject which does automatic re-connect when ldap.SERVER_DOWN is raised within a *operation_s() method (synchronous operations). You could use that as a starting point to implement connecting to another server in a pool wit

Re: [SPAM] Re: CONNECTING FROM A SERVERS POOL

2010-03-29 Thread Yeargan, Yancey
Hmm.. I do not know enough about the SimpleLDAPObject code. Perhaps a python-ldap developer can provide more information (but I think they will recommend that you not use SimpleLDAPObject). Assigning to self may not work as you expect. I do not think you will be able to replace the SimpleLDAPOb

[SPAM] Re: CONNECTING FROM A SERVERS POOL

2010-03-29 Thread Alberto Luengo Cabanillas (Pexego)
Yeargan, Yancey wrote: I think it is as simple as using multiple URL values separated with spaces. For example: ldap.initalize("url1 url2 url3") The underlying LDAP code will automatically try each URL until one succeeds or they all fail. Yancey Hi Yeargan. Thanks for the quick reply but

CONNECTING FROM A SERVERS POOL

2010-03-29 Thread Alberto Luengo Cabanillas (Pexego)
Hi all! Me and a workmate are currently working in an approach of connecting to different LDAP servers (each one is a replica of another) because of fault tolerancy purposes. So, first thing we did was modifying the *__init__* method of SimpleLDAPObject class (ldapobject.py file) adding a new at