]> git.ipfire.org Git - thirdparty/krb5.git/commit
Limit -keepold for self-service key changes 1425/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 14 Apr 2025 06:16:10 +0000 (02:16 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 22 Apr 2025 19:50:34 +0000 (15:50 -0400)
commitb43ac6b2b02b0d81370aab337d31159aba219ed6
treef9763903e58f3e6e923e88ec47f1439a86ecba92
parent8456b1f0f55fbb42f983df1418c65bef9c71ad66
Limit -keepold for self-service key changes

In libkadm5, change the type of the keepold parameters from
krb5_boolean to unsigned int (which is the underlying type of
krb5_boolean, so this is not an API or ABI change).  In libkadm5srv,
interpret a keepold value greater than 2 to be a limit on the number
of resulting key versions including the new one.

In kadmind, when a principal changes its own keys, limit the number of
resulting key versions to 5.

ticket: 9173 (new)
src/include/kdb.h
src/kadmin/server/server_stubs.c
src/lib/kadm5/admin.h
src/lib/kadm5/clnt/client_principal.c
src/lib/kadm5/srv/svr_principal.c
src/lib/kdb/kdb_cpw.c
src/tests/t_keyrollover.py