LdapServer : add update_need() helper method
This commit is contained in:
parent
9d42fa6c71
commit
0a127f0f8b
1 changed files with 6 additions and 0 deletions
|
@ -95,6 +95,12 @@ class LdapServer(object):
|
||||||
self._error("LdapServer - Error updating %s : %s\nOld : %s\nNew : %s" % (dn, e, old, new), logging.error)
|
self._error("LdapServer - Error updating %s : %s\nOld : %s\nNew : %s" % (dn, e, old, new), logging.error)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def update_need(self, old, new, ignore_attrs=[]):
|
||||||
|
ldif = modlist.modifyModlist(old, new, ignore_attr_types=ignore_attrs)
|
||||||
|
if ldif == []:
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
def rename_object(self,dn,new_rdn):
|
def rename_object(self,dn,new_rdn):
|
||||||
try:
|
try:
|
||||||
self.logger.debug("LdapServer - Rename %s in %s" % (dn,new_rdn))
|
self.logger.debug("LdapServer - Rename %s in %s" % (dn,new_rdn))
|
||||||
|
|
Loading…
Reference in a new issue