Dear developers,

I experienced an issue with python-ldap[1] library and OpenBSD ldapd(8) server,
i can reproduce the issue with ldapd(8) on OpenBSD 5.9 and 6.0.

I have one ldap attribute with multiple values like this:

dn: ...
enabledService: abc
enabledService: def
enabledService: ghi
enabledService: jkl

I run code below to delete just "enabledService=abc":

conn.modify_s(dn, [(ldap.MOD_DELETE, 'enabledService', 'abc')])

It deletes all enabledService (this is not expected). Same code works
fine with OpenLDAP. The full working python code to reproduce this issue
can be found here: http://pastebin.com/80KpJVWK

Author of python-ldap library thought this is more like a ldapd(8) bug[2], i
thought i’d better post here to get some hint.

Thanks very much for helping.

[1] python-ldap: https://www.python-ldap.org/
[2] https://mail.python.org/pipermail/python-ldap/2016q2/003765.html

----
Zhang Huangbin, founder of iRedMail project: http://www.iredmail.org/
Time zone: GMT+8 (China/Beijing).

Reply via email to