Ticket #28 (closed enhancement: fixed)

Opened 17 months ago

Last modified 17 months ago

Handle LDAP referrals with ldap_set_rebind_proc()

Reported by: smoku Owned by: smoku
Priority: major Component: General
Version: 2.1 Keywords:
Cc: Tracforge_linkmap:
Blocking: Blocked By:

Description

This appears to be an ldap version issue. The ldap.h concerned only has 2 arguments for ldap_set_rebind_proc(), viz.:

#define LDAP_API_VERSION 2004 #define LDAP_VENDOR_NAME "OpenLDAP"

/*

  • vendor version number
  • 2.0.0 -> 20000
  • 2.3.16 -> 20316 */

#define LDAP_VENDOR_VERSION 20025

...

/* V3 REBIND Function Callback Prototype */ typedef int (LDAP_REBIND_PROC) LDAP_P((

LDAP *ld, LDAP_CONST char *url, int request, ber_int_t msgid ));

LDAP_F( int ) ldap_set_rebind_proc LDAP_P((

LDAP *ld, LDAP_REBIND_PROC *ldap_proc));

php seems to check for this in configure:

http://www.openldap.org/lists/openldap-software/200303/msg00367.html

Attachments

patch-ldap-referral.patch (1.2 kB) - added by smoku 17 months ago.
Patch by Stephen Marquard <scm@…>

Change History

Changed 17 months ago by smoku

Patch by Stephen Marquard <scm@…>

Changed 17 months ago by smoku

  • status changed from new to closed
  • resolution set to fixed

(In [164]) Integrated LDAP rebind patch by Stephen Marquard. Fixes #28

Note: See TracTickets for help on using tickets.