ldap.LdapClient: add update_need method
This commit is contained in:
parent
26e7b8efd1
commit
558da5c815
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue