mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use the dn attribute of LDAPEntry to set/get DNs of entries.
Convert all code that uses the 'dn' key of LDAPEntry for this to use the dn attribute instead.
This commit is contained in:
committed by
Martin Kosek
parent
982b782777
commit
bb36683c84
@@ -316,10 +316,12 @@ class automember_add_condition(LDAPUpdate):
|
||||
except errors.NotFound:
|
||||
failed['failed'][attr].append(regex)
|
||||
|
||||
entry_attrs = entry_to_dict(entry_attrs, **options)
|
||||
|
||||
# Set failed and completed to they can be harvested in the execute super
|
||||
setattr(context, 'failed', failed)
|
||||
setattr(context, 'completed', completed)
|
||||
setattr(context, 'entry_attrs', dict(entry_attrs))
|
||||
setattr(context, 'entry_attrs', entry_attrs)
|
||||
|
||||
# Make sure to returned the failed results if there is nothing to remove
|
||||
if completed == 0:
|
||||
@@ -406,10 +408,13 @@ class automember_remove_condition(LDAPUpdate):
|
||||
else:
|
||||
failed['failed'][attr].append(regex)
|
||||
entry_attrs[attr] = old_entry
|
||||
|
||||
entry_attrs = entry_to_dict(entry_attrs, **options)
|
||||
|
||||
# Set failed and completed to they can be harvested in the execute super
|
||||
setattr(context, 'failed', failed)
|
||||
setattr(context, 'completed', completed)
|
||||
setattr(context, 'entry_attrs', dict(entry_attrs))
|
||||
setattr(context, 'entry_attrs', entry_attrs)
|
||||
|
||||
# Make sure to returned the failed results if there is nothing to remove
|
||||
if completed == 0:
|
||||
|
||||
Reference in New Issue
Block a user