get_hint_list.
kdc_util.c (validate_as_request): Remove preauthentication check; this
is handled in do_as_req.c
do_as_req.c (process_as_request): Pass e_data to prepare_as_error so
that the proper preauthentication hint list can be passed back to the
client.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6960
dc483132-0cff-0310-8789-
dd5450dbe970
Fri Oct 6 00:07:49 1995 Theodore Y. Ts'o <tytso@dcl>
+ * kdc_preauth.c (get_preauth_hint_list): Fix missing indirection
+ in get_hint_list.
+
+ * kdc_util.c (validate_as_request): Remove preauthentication
+ check; this is handled in do_as_req.c
+
* do_tgs_req.c (process_tgs_req): Use a slightly more compressed
logging format.
* do_as_req.c (process_as_req): Unify the logging and error packet
production, to make sure that both logging and an error
- packet is returned for each error condition.
+ packet is returned for each error condition. Pass
+ e_data to prepare_as_error so that the proper
+ preauthentication hint list can be passed back to the client.
Thu Oct 5 21:23:12 1995 Theodore Y. Ts'o <tytso@dcl>
if (errcode < 0 || errcode > 128)
errcode = KRB_ERR_GENERIC;
- errcode = prepare_error_as(request, errcode, 0, response);
+ errcode = prepare_error_as(request, errcode, &e_data, response);
}
if (cname)
free(cname);
*pa = malloc(sizeof(krb5_pa_data));
if (*pa == 0)
goto errout;
- memset(pa, 0, sizeof(krb5_pa_data));
+ memset(*pa, 0, sizeof(krb5_pa_data));
(*pa)->magic = KV5M_PA_DATA;
(*pa)->pa_type = ap->type;
if (ap->get_edata)
return(KDC_ERR_S_PRINCIPAL_UNKNOWN);
}
- /* Check to see if preauthentication is required */
- if (isflagset(client.attributes, KRB5_KDB_REQUIRES_PRE_AUTH) &&
- !request->padata) {
- *status = "MISSING PRE_AUTH";
-#ifdef KRBCONF_VAGUE_ERRORS
- return KRB_ERR_GENERIC;
-#else
- return KDC_ERR_PREAUTH_REQUIRED;
-#endif
- }
-
/*
* Check against local policy
*/