[python-ldap] modifyModlist and MOD_DELETE

seph seph at directionless.org
Tue Jul 28 15:43:26 CEST 2015

I've been playing with python-ldap, and I'm wondering why modifyModlist
works the way it does. Specifically, when deleting a attribute of a set,
it deletes then entire set, and then re-adds the remaining ones. Anyone
know why?

In other words, why aren't these the same?

modifyModlist({'memberUid': ['a_member', 'b_member', 'c_member']},
              {'memberUid': ['b_member', 'c_member']})

[(MOD_DELETE, 'memberUid', ['a_member'])]


More information about the python-ldap mailing list