Skip to content

Commit

Permalink
Set _fetched_attributes when creating LDAPEntry in LDAPConnection.search
Browse files Browse the repository at this point in the history
  • Loading branch information
leonhandreke committed Jan 1, 2014
1 parent d5de688 commit c54e017
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ldapom/connection.py
Expand Up @@ -280,6 +280,7 @@ def _search(self, *args, **kwargs):
attribute = attribute_type(compat._decode_utf8(name))
attribute._set_ldap_values(value)
entry._attributes.add(attribute)
entry._fetched_attributes = copy.deepcopy(entry._attributes)
yield entry
except error.LDAPNoSuchObjectError:
# If the search returned without results, "return" an empty generator.
Expand Down

0 comments on commit c54e017

Please sign in to comment.