mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05:00
Rebind cleanup
This commit is contained in:
parent
acd4bb1a84
commit
55755fea2a
3 changed files with 7 additions and 4 deletions
|
|
@ -575,7 +575,7 @@ typedef int (LDAP_REBIND_PROC) LDAP_P((
|
||||||
LDAP_F( int )
|
LDAP_F( int )
|
||||||
ldap_set_rebind_proc LDAP_P((
|
ldap_set_rebind_proc LDAP_P((
|
||||||
LDAP *ld,
|
LDAP *ld,
|
||||||
LDAP_REBIND_PROC *ldap_proc,
|
LDAP_REBIND_PROC *rebind_proc,
|
||||||
void *params ));
|
void *params ));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,10 @@ get_modlist( char *prompt1, char *prompt2, char *prompt3 )
|
||||||
|
|
||||||
|
|
||||||
static int
|
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];
|
static char dn[256], passwd[256];
|
||||||
int authmethod;
|
int authmethod;
|
||||||
|
|
@ -701,7 +704,7 @@ main( int argc, char **argv )
|
||||||
getline( line, sizeof(line), stdin,
|
getline( line, sizeof(line), stdin,
|
||||||
"Prompt for bind credentials when chasing referrals (0=no, 1=yes)?" );
|
"Prompt for bind credentials when chasing referrals (0=no, 1=yes)?" );
|
||||||
if ( atoi( line ) != 0 ) {
|
if ( atoi( line ) != 0 ) {
|
||||||
ldap_set_rebind_proc( ld, bind_prompt );
|
ldap_set_rebind_proc( ld, bind_prompt, NULL );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue