krb5: report_canonical_client_name implies check_pac
This commit is contained in:
@@ -242,6 +242,10 @@ init_context_from_config_file(krb5_context context)
|
||||
INIT_FLAG(context, flags, KRB5_CTX_F_ENFORCE_OK_AS_DELEGATE, FALSE, "enforce_ok_as_delegate");
|
||||
INIT_FLAG(context, flags, KRB5_CTX_F_REPORT_CANONICAL_CLIENT_NAME, FALSE, "report_canonical_client_name");
|
||||
|
||||
/* need to verify the PAC if we are going to report the canonical client name */
|
||||
if (flags & KRB5_CTX_F_REPORT_CANONICAL_CLIENT_NAME)
|
||||
flags |= KRB5_CTX_F_CHECK_PAC;
|
||||
|
||||
if (context->default_cc_name)
|
||||
free(context->default_cc_name);
|
||||
context->default_cc_name = NULL;
|
||||
|
||||
Reference in New Issue
Block a user