ReconnectLDAPObject.whoami_s() is not protected again disconnection !
Maybe someone forgot to redefine this method into ReconnectLDAPObject !
Here is the patch
*** /usr/lib/python2.4/site-packages/ldap/ldapobject.py.orig Fri
Jan 26 13:42:59 2007
--- /usr/lib/python2.4/site-packages/ldap/ldapobject.py Fri Jan 26 13:46:12 2007
***************
*** 788,793 ****
--- 788,796 ----
def search_ext_s(self,*args,**kwargs):
return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
+ def whoami_s(self,*args,**kwargs):
+ return self._apply_method_s(SimpleLDAPObject.whoami_s,*args,**kwargs)
+
class SmartLDAPObject(ReconnectLDAPObject):
"""
I use whoami_s() like a ping, to know if the server is still up. Do
you know a better way ?
--
Alain Spineux
aspineux gmail com
May the sources be with you
|