From bf420f0a81d415351ca406b465328bca0171972f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 13 Feb 2018 11:58:08 +0100 Subject: [PATCH] Improve message on modify error --- LdapServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):