diff --git a/mylib/ldap.py b/mylib/ldap.py index 7cd522b..d5e3b8b 100644 --- a/mylib/ldap.py +++ b/mylib/ldap.py @@ -670,6 +670,18 @@ class LdapClient: 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): """ Add an object