Arthur de Jong wrote:
I'm the maintainer of nss_ldapd [1] which is a replacement for nss_ldap. I have been trying to get rid of using deprecated functions while compiling with OpenLDAP 2.4.7.
One of the changes I made was using ?ldap_str2dn() instead of ldap_explode_dn() and ldap_explode_rdn() to parse the DN of entries returned. However, I ran into the following.
The relevant definitions for ??ldap_str2dn() in OpenLDAP 2.4.7 are:
typedef struct ldap_ava { [...] } LDAPAVA; typedef LDAPAVA** LDAPRDN; typedef LDAPRDN* LDAPDN; LDAP_F( int ) ldap_str2dn LDAP_P(( LDAP_CONST char *str, LDAPDN *dn, unsigned flags ));
While OpenLDAP 2.1.30 (another version I would like to support) there is:
OpenLDAP 2.1? Why? That's been unsupported for 3-4 years already.