Skip Menu |
 

Subject: new multi-masterkey support doesn't work well when system clock is set back
If the system clock on a KDC is set back in time after a mkey is
activated "now" or if the admin sets the active time for all existing
mkeys in the future it is possible that the code will not find any mkey
active. This is a problem as there should always be one "active" mkey
used to protect principal keys. I'd like to address this by making
several changes including:

- Modify krb5_dbe_find_act_mkey() to return the mkey with the lowest
KVNO if there are no actkvno entries with a time equal or earlier than
the current time.

- Modify krb5_dbe_fetch_act_key_list() to return a default actkvno entry
with time == 0 if there is not actkvno TL data in the mkey princ
entry. Currently its setting time to the current time but again if
the clock is set back this could cause problems.

- Remove the code in use_mkey that auto-trims the actkvno list. I
don't think this is really necessary since the actkvno list will be
edited when the purge_mkeys command is run.
Download (untitled) / with headers
text/plain 1.1KiB
[william.fiveash@sun.com - Wed Feb 4 17:15:30 2009]:

Show quoted text
> If the system clock on a KDC is set back in time after a mkey is
> activated "now" or if the admin sets the active time for all existing
> mkeys in the future it is possible that the code will not find any mkey
> active. This is a problem as there should always be one "active" mkey
> used to protect principal keys. I'd like to address this by making
> several changes including:
>
> - Modify krb5_dbe_find_act_mkey() to return the mkey with the lowest
> KVNO if there are no actkvno entries with a time equal or earlier than
> the current time.
>
> - Modify krb5_dbe_fetch_act_key_list() to return a default actkvno entry
> with time == 0 if there is not actkvno TL data in the mkey princ
> entry. Currently its setting time to the current time but again if
> the clock is set back this could cause problems.
>
> - Remove the code in use_mkey that auto-trims the actkvno list. I
> don't think this is really necessary since the actkvno list will be
> edited when the purge_mkeys command is run.
>
>

- modify kdb5_use_mkey() to error out if the user tries to activate a
mkvno such that there would be no currently active mkey.
From: william.fiveash@sun.com
Subject: SVN Commit

new multi-masterkey support doesn't work well when system clock is set
back

The ticket contains the details.


https://github.com/krb5/krb5/commit/417d118fb34f352c63ee4dba016377f4d91a55ed
Commit By: wfiveash
Revision: 21884
Changed Files:
U trunk/src/kadmin/dbutil/kdb5_mkey.c
U trunk/src/lib/kdb/kdb5.c
From: tlyu@mit.edu
Subject: SVN Commit

pull up r21884 from trunk

------------------------------------------------------------------------
r21884 | wfiveash | 2009-02-04 17:29:44 -0500 (Wed, 04 Feb 2009) | 7 lines
Changed paths:
M /trunk/src/kadmin/dbutil/kdb5_mkey.c
M /trunk/src/lib/kdb/kdb5.c

ticket: 6361

new multi-masterkey support doesn't work well when system clock is set
back

The ticket contains the details.

------------------------------------------------------------------------

https://github.com/krb5/krb5/commit/b917472ffade184da3aa109fb7c93a161c73961f
Commit By: tlyu
Revision: 22015
Changed Files:
U branches/krb5-1-7/src/kadmin/dbutil/kdb5_mkey.c
U branches/krb5-1-7/src/lib/kdb/kdb5.c