mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Import kbind fix from HEAD (blind commit)
This commit is contained in:
parent
363b36492c
commit
ea074ff4c3
@ -136,25 +136,6 @@ auth( char *who, int implicit )
|
||||
printf(" Authenticating to the directory as \"%s\"...\n", *rdns );
|
||||
|
||||
#ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
|
||||
/*
|
||||
* First, if the user has a choice of auth methods, ask which
|
||||
* one they want to use. if they want kerberos, ask which
|
||||
* krbname they want to bind as.
|
||||
*/
|
||||
|
||||
if ( (krbnames = ldap_get_values( ld, mp, "krbName" )) != NULL ) {
|
||||
authmethod = LDAP_AUTH_KRBV4;
|
||||
(void) ldap_value_free(krbnames);
|
||||
} else {
|
||||
authmethod = LDAP_AUTH_SIMPLE;
|
||||
}
|
||||
(void) ldap_msgfree(mp);
|
||||
|
||||
/*
|
||||
* if they are already kinited, we don't need to ask for a
|
||||
* password.
|
||||
*/
|
||||
|
||||
if ( authmethod != LDAP_AUTH_KRBV4 )
|
||||
#endif
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user