(krb5_get_init_creds_password): If KDC_ERR_PREUATH_REQUIRED, add
preauthentication and try again. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3119 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -447,6 +447,15 @@ krb5_get_init_creds_password(krb5_context context,
|
||||
goto out;
|
||||
password = buf;
|
||||
break;
|
||||
case KRB5KDC_ERR_PREAUTH_REQUIRED :
|
||||
if (pre_auth_types)
|
||||
free (pre_auth_types);
|
||||
pre_auth_types = malloc(2 * sizeof(*pre_auth_types));
|
||||
if (pre_auth_types == NULL)
|
||||
goto out;
|
||||
pre_auth_types[0] = KRB5_PADATA_ENC_TIMESTAMP;
|
||||
pre_auth_types[1] = 0;
|
||||
break;
|
||||
default:
|
||||
goto out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user