LDAP_F( int )
ldap_set_rebind_proc LDAP_P((
LDAP *ld,
- LDAP_REBIND_PROC *ldap_proc,
+ LDAP_REBIND_PROC *rebind_proc,
void *params ));
/*
Debug( LDAP_DEBUG_TRACE, "Call application rebind_proc\n", 0, 0, 0);
err = (*ld->ld_rebind_proc)( ld,
bind->ri_url, bind->ri_request, bind->ri_msgid,
- ld->ld_rebind_params);
+ ld->ld_rebind_params );
ld->ld_defconn = savedefconn;
--lc->lconn_refcnt;
static int
-bind_prompt( LDAP *ld, LDAP_CONST char *url, int request, ber_int_t msgid)
+bind_prompt( LDAP *ld,
+ LDAP_CONST char *url,
+ ber_tag_t request, ber_int_t msgid,
+ void *params )
{
static char dn[256], passwd[256];
int authmethod;
getline( line, sizeof(line), stdin,
"Prompt for bind credentials when chasing referrals (0=no, 1=yes)?" );
if ( atoi( line ) != 0 ) {
- ldap_set_rebind_proc( ld, bind_prompt );
+ ldap_set_rebind_proc( ld, bind_prompt, NULL );
}
}
break;