#4349 ldap2.find_entries modifies attrs_list
Closed: Fixed None Opened 9 years ago by pviktori.

ldap2.find_entries modifies the passed in attrs_list to remove the virtual attributes memberindirect and memberofindirect before passing the list to LDAP.

This means that call like

ldap2.get_entry(dn, attrs_list=some_framework_object.default_attributes)

will permanently remove the virtual attributes from the some_framework_object's definition.

To prevent nasty surprises, the method must be fixed. And we need to make sure no code/tests depend on this behavior.


master:

  • 988b2ce ldap2.find_entries: Do not modify attrs_list in-place

Metadata Update from @pviktori:
- Issue assigned to pviktori
- Issue set to the milestone: FreeIPA 4.0 - 2014/05

7 years ago

Login to comment on this ticket.

Metadata