Improve message on modify error

This commit is contained in:
Benjamin Renard 2018-02-13 11:58:08 +01:00
parent 199fad0049
commit bf420f0a81

View file

@ -79,7 +79,7 @@ class LdapServer(object):
self.con.modify_s(dn,ldif)
return True
except ldap.LDAPError, e:
self._error("LdapServer - Error updating %s : %s" % (dn,e))
self._error("LdapServer - Error updating %s : %s\nOld : %s\nNew : %s" % (dn, e, old, new))
return False
def rename_object(self,dn,new_rdn):