+

LdapServer :: update_object() : add ignore_attrs parameter

Benjamin Renard [2018-02-16 09:52:30]
LdapServer :: update_object() : add ignore_attrs parameter
Filename
LdapServer.py
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:
ViewGit