LdapServer :: update_object() : add ignore_attrs parameter

This commit is contained in:
Benjamin Renard 2018-02-16 10:52:30 +01:00
parent a525bd586b
commit f5771ca698

View file

@ -71,8 +71,8 @@ class LdapServer(object):
return False return False
def update_object(self,dn,old,new): def update_object(self, dn, old, new, ignore_attrs=[]):
ldif = modlist.modifyModlist(old,new) ldif = modlist.modifyModlist(old, new, ignore_attr_types=ignore_attrs)
if ldif == []: if ldif == []:
return True return True
try: try: