[Freeipa-devel] [PATCH] Improve modlist generation in ldap2. Some code cleanup as bonus.

Pavel Zuna pzuna at redhat.com
Tue Jan 5 14:01:41 UTC 2010


ldap2._generate_modlist now uses more sophisticated means to decide when to use 
MOD_ADD+MOD_DELETE instead of MOD_REPLACE. Before it did MOD_REPLACE only on 
attributes explicitly specified in ldap2._FORCE_REPLACE_ON_UPDATE_ATTRS. Now it 
does MOD_REPLACE for all single value attributes and never for multi value.

This patch also silently fixes a bug: ldap2 didn't check for the existence of 
attributes that were being deleted by setting them to None.

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Improve-modlist-generation-in-ldap2.-Some-code-clean.patch
Type: application/mbox
Size: 11523 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100105/8268cae2/attachment.mbox>


More information about the Freeipa-devel mailing list