Rebind cleanup

This commit is contained in:
Kurt Zeilenga 2001-06-15 04:49:38 +00:00
parent acd4bb1a84
commit 55755fea2a
3 changed files with 7 additions and 4 deletions

View file

@ -575,7 +575,7 @@ typedef int (LDAP_REBIND_PROC) LDAP_P((
LDAP_F( int )
ldap_set_rebind_proc LDAP_P((
LDAP *ld,
LDAP_REBIND_PROC *ldap_proc,
LDAP_REBIND_PROC *rebind_proc,
void *params ));
/*

View file

@ -302,7 +302,7 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc *srvlist, int use_ldsb,
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;

View file

@ -229,7 +229,10 @@ get_modlist( char *prompt1, char *prompt2, char *prompt3 )
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;
@ -701,7 +704,7 @@ main( int argc, char **argv )
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;