Behaviour when object is not found

Michael Ströder michael at
Fri Aug 11 11:18:48 CEST 2000


I'm testing ldapmodule (CVS version) with OpenLDAP 2.0beta. With
OpenLDAP 1.2.x when trying to read a non-existent entry ldapmodule
raised exception ldap.NO_SUCH_OBJECT which is very handy to handle
non-existing entries.

With OpenLDAP 2.0beta ldapmodule returns an empty result list
instead which breaks existing code. I would expect that this is more
a OpenLDAP 2.0 issue but before I start a discussion on
openldap-devel at I would like to understand exactly under
which conditions the exception ldap.NO_SUCH_OBJECT is raised.

Ciao, Michael.

More information about the python-ldap mailing list