openldap-software May 2010 archive
Main Archive Page > Month Archives  > openldap-software archives
openldap-software: Re: ldap_str2dn() and ldap_dn2str() reentrant

Re: ldap_str2dn() and ldap_dn2str() reentrant?

From: Michael Ströder <michael_at_nospam>
Date: Sun May 16 2010 - 12:51:35 GMT
To: openldap-software@openldap.org

Michael Ströder wrote:
> Routinely in the C module part of python-ldap all calls to libldap functions
> are wrapped by a thread lock. But I wonder whether that's really necessary for
> all of them, especially regarding ldap_str2dn() and ldap_dn2str().

Mainly for python-ldap this question boils down to whether ldap_bv2dn_x() and
ldap_bv2rdn_x() are re-entrant. Glancing over these it seems they are
re-entrant. But it would be nice if one of the OpenLDAP developers could
confirm that.

Ciao, Michael.