Commit aeb325dc authored by Nicolas Delaby's avatar Nicolas Delaby

Force reconnection if disconnected

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19323 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af429693
......@@ -521,7 +521,7 @@ class LDIFMethod(LDAPMethod):
try:
delete(c, dn)
except ldap.SERVER_DOWN:
c = self._connection().GetConnection()
c = self._connection().getForcedConnection()
delete(c, dn)
else:
for mod_tuple in tuple_list:
......@@ -531,7 +531,7 @@ class LDIFMethod(LDAPMethod):
try:
add(c, dn, mod_list)
except ldap.SERVER_DOWN:
c = self._connection().GetConnection()
c = self._connection().getForcedConnection()
add(c, dn, mod_list)
else:
LOG('LDIFMethod Type unknow',0,'')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment