ldap.LdapClient: add update_need method

This commit is contained in:
Benjamin Renard 2021-12-08 18:19:37 +01:00
parent 26e7b8efd1
commit 558da5c815

View file

@ -670,6 +670,18 @@ class LdapClient:
ignore_attrs=protected_attrs, prefix=prefix ignore_attrs=protected_attrs, prefix=prefix
) )
def update_need(self, changes, protected_attrs=None):
"""
Check if update is need
:param changes: The changes as returned by get_changes
"""
assert self._conn or self.initialize()
return self._conn.update_need(
changes[0], changes[1],
ignore_attrs=protected_attrs
)
def add_object(self, dn, attrs): def add_object(self, dn, attrs):
""" """
Add an object Add an object