leonhandreke/ldapom — pull request #4 by f1ori (2013-08-14 10:11:00+00:00)
Title: Make code more compact

I implemented your sugestion. I don't see, why this shouln't work, if a subset of attributes is fetched. ldap.LDAP_MOD_REPLACE is a per attribute operation, so attributes which aren't mentioned, won't be touched.

Btw. the code supports fetching a subset of attributes: the parameter retrieve_attributes of search is passed to _raw_search