+

Improve message on modify error

Benjamin Renard [2018-02-13 10:58:08]
Improve message on modify error
Filename
LdapServer.py
diff --git a/LdapServer.py b/LdapServer.py
index 611b7bd..6f6b6f4 100644
--- a/LdapServer.py
+++ b/LdapServer.py
@@ -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):
ViewGit