Hi,
When running the ldap_set_rebind_proc_error test on windows, I'm getting
a fatal error that the ldap_set_rebind_proc() function is undefined.
Any idea why this is so? Should LDAP be compiled with a certain
compilation flag for it to be available?
Dear Eyal,
ldap_set_rebind_proc() is only available if following condition is true:
defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)
LDAP_API_FEATURE_X_OPENLDAP is defined in ldap.h from OpenLPAD project since round about 12 years (http://www.openldap.org/devel/cvsweb.cgi/include/ldap.h#rev1.31).
HAVE_3ARG_SETREBINDPROC is defined if C-command ldap_set_rebind_proc(0,0,0) is possible. The third parameter was added in June 2001 (see
http://www.openldap.org/devel/cvsweb.cgi/include/ldap.h#rev1.135).
So you should have ldap_set_rebind_proc() in your PHP build if you use an OpenLDAP lib version 2.0.12 or higher (v2.4.23 is current).
Best regards,
Kai