diff options
author | Theodore Tso <tytso@mit.edu> | 1994-12-13 20:39:00 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1994-12-13 20:39:00 +0000 |
commit | 0bc7bb97d787a1438c45f97957abec092618cdf0 (patch) | |
tree | 535aaad347012f071c3095e4c7f9e7a590f61ee5 /src/kdc/policy.c | |
parent | 8f64320fdbcd0bfa88b70db1962b221ba16899d1 (diff) | |
download | krb5-0bc7bb97d787a1438c45f97957abec092618cdf0.tar.gz krb5-0bc7bb97d787a1438c45f97957abec092618cdf0.tar.xz krb5-0bc7bb97d787a1438c45f97957abec092618cdf0.zip |
do_tgs_req.c (prepare_error_tgs): Don't free the passed in ticket; it
will be freed as part of other structures.
do_tgs_req.c (process_tgs_req): Set the encryption type in the reply
structure, and set the eblock type accordingly.
do_as_req.c (process_as_req): Set the encryption type in the
reply_encpart structure.
kdc_util.c (validate_as_request):
policy.c (against_local_policy_as): Move requirement that an AS
request must include the addresses field to the local policy routine.
(Not required by RFC).
main.c (setup_com_err): Initialize the kdc5 error table (the kdb5
error table is already initialized)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4730 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc/policy.c')
-rw-r--r-- | src/kdc/policy.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kdc/policy.c b/src/kdc/policy.c index 716f481587..55d99b7557 100644 --- a/src/kdc/policy.c +++ b/src/kdc/policy.c @@ -40,6 +40,14 @@ krb5_db_entry server; krb5_timestamp kdc_time; char **status; { +#if 0 + /* An AS request must include the addresses field */ + if (request->addresses == 0) { + *status = "NO ADDRESS"; + return KRB5KDC_ERR_POLICY; + } +#endif + return 0; /* not against policy */ } |