[python-ldap] Bug in ldap.modlist.modifyModlist

Thierry Lam Yan On thierryl at gadventures.com
Tue Oct 20 16:36:13 CEST 2015

For the following code in version 2.4.21:

import ldap

import ldap.modlist

old_values = {

    'department': 'Blue Sky',


new_values = {

    'department': 'Sky Blue',


mods = ldap.modlist.modifyModlist(old_values, new_values)

print mods

The above returns:


The comparison method cannot detect for the same set of words in different order.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20151020/3b4ca880/attachment.html>

More information about the python-ldap mailing list