From f5771ca6983e060118cfd7f33bb619c4e8ede45b Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 16 Feb 2018 10:52:30 +0100 Subject: [PATCH] LdapServer :: update_object() : add ignore_attrs parameter --- LdapServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LdapServer.py b/LdapServer.py index 3ef0752..9165746 100644 --- a/LdapServer.py +++ b/LdapServer.py @@ -71,8 +71,8 @@ class LdapServer(object): return False - def update_object(self,dn,old,new): - ldif = modlist.modifyModlist(old,new) + def update_object(self, dn, old, new, ignore_attrs=[]): + ldif = modlist.modifyModlist(old, new, ignore_attr_types=ignore_attrs) if ldif == []: return True try: