diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb5/krb/get_in_tkt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index 8351dfd30..2dd39478a 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -938,6 +938,14 @@ krb5_init_creds_init(krb5_context context, goto cleanup; } + /* + * Set a default enctype for optimistic preauth. If we're not doing + * optimistic preauth, this should ordinarily get overwritten when we + * process the etype-info2 of the preauth-required error. + */ + if (ctx->request->nktypes > 0) + ctx->etype = ctx->request->ktype[0]; + /* addresess */ if (opte->flags & KRB5_GET_INIT_CREDS_OPT_ADDRESS_LIST) { code = krb5_copy_addresses(context, opte->address_list, |
