[Date Prev][Date Next]
Re: [Open]LDAP C API's rebind_proc differences: LDAPv2 vs. LDAPv3
Speaking of changes... I'm about to commit a change to
the rebind proc API. Namely both the registration function
a void * to anything and pass this to the rebind proc
on each call. This can be used by the application to
pass information to the rebind proc. This is needed to
implement a common rebind proc for OpenLDAP client tools.
At 09:01 AM 6/11/2001, Kurt D. Zeilenga wrote:
>At 02:42 AM 6/11/2001, Konstantin Chuguev wrote:
>>I looked through mailing lists and in Google but didn't find anything
>>Netscape SDK (and perhaps OpenLDAP-1.2) have the following definintion
>>of the rebind_proc:
>>int rebind_proc( LDAP *ld, char **dnp, char **pwp, int *authmethodp, int
>>freeit [, void *arg] );
>>In OpenLDAPv2, the callback prototype is different:
>>typedef int (LDAP_REBIND_PROC) LDAP_P(( LDAP *ld, LDAP_CONST char *url,
>>int request, ber_int_t msgid ));
>>What is the meaning of the callback parameters and the result?
>>I need to
>>fix a piece of code to use the new API...
>See test.c in libldap
>>Unfortunately, the ldap_set_rebind_proc manual page still describes the
>Yes. Most of the API man pages are out of date. I note as well that
>this API is subject to significant change based upon IETF work or other
>>I used to have a link to an LDAP C API Internet Draft, but have lost it.
>>Is the new prototype OpenLDAP-specific?
>> * * Konstantin Chuguev - Application Engineer
>> * * Francis House, 112 Hills Road
>> * Cambridge CB2 1PQ, United Kingdom
>> D A N T E WWW: http://www.dante.net