[python-ldap] Possible bug of MOD_DELETE with OpenBSD ldapd as LDAP server

Zhang Huangbin zhbmaillistonly at gmail.com
Tue May 17 00:31:10 EDT 2016

Dear all,

I run OpenBSD 5.9 (amd64) and its built-in ldapd[1] daemon as LDAP
server. Let's say i have one ldap object with attribute/values like

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.
Is it a python-ldap issue or OpenBSD ldapd daemon?

Thanks very much for your time.

[1] ldapd: http://man.openbsd.org/OpenBSD-current/man8/ldapd.8

More information about the python-ldap mailing list