]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix kadmin min_life check with nonexistent policy
authorGreg Hudson <ghudson@mit.edu>
Wed, 8 Jun 2016 04:00:55 +0000 (00:00 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 6 Jul 2016 20:22:34 +0000 (16:22 -0400)
commited725b8e0f43d8e6cf0ebe4eea89edabef1eba3d
treeb1f4e1b8e00bc5ece12e2cb932b28e9d28ab5b81
parentca76fe6dc46e58019ff8ec7f682f11c6eaa39132
Fix kadmin min_life check with nonexistent policy

In kadmind, self-service key changes require a check against the
policy's min_life field.  If the policy does not exist, this check
should succeed according to the semantics introduced by ticket #7385.
Fix check_min_life() to return 0 if kadm5_get_policy() returns
KADM5_UNK_POLICY.  Reported by John Devitofranceschi.

(cherry picked from commit 5fca279ca4d18f1b5798847a98e7df8737d2eb7c)

ticket: 8427
version_fixed: 1.14.3
src/kadmin/server/misc.c
src/tests/t_policy.py