From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9ba4,9d35ce3c666abe50,start X-Google-Attributes: gidf9ba4,public X-Google-Thread: f678f,9d35ce3c666abe50,start X-Google-Attributes: gidf678f,public From: rsalz@osf.org (Rich Salz) Subject: Q&A on server key management Date: 1996/04/26 Message-ID: <4lpe75$8fl@paperboy.osf.org>#1/1 X-Deja-AN: 151560885 organization: Open Software Foundation newsgroups: comp.soft-sys.dce,comp.unix.osf.misc The following brief Q&A is based on text provided by Mike Burati at HP and reviewed and modified by OSF and HP. We hope that Jon Mauney will consider adding it to his DCE FAQ. Q: Do DCE servers (both those provided by DCE and those written by third parties) automatically update their long term secret keys? A: No. Except for exceptional circumstances, all DCE servers should periodically change their long-term key. This is done by spawning a thread that calls sec_key_mgmt_manage_key() (which never returns under normal circumstances). As distributed by OSF, DCE has no password expirations set (sec_key_mgmt_manage_key() won't actually do anything). You may set the password expiration time or lifespan using an admin tool such as rgy_edit or dcecp. In 1.0.x releases, DCE only enforced passwd expiration in the clients (such as printing a warning in dce_login). As of DCE 1.1, however, the security server will no longer grant a TGT for an account who's password/key has expired, so servers that aren't correctly running the manage key code before their password expires will require administrative intervention to become operational again. The following table shows what the OSF-provided servers do: cdsd -- yes; uses FILE:/krb5/v5srvtab dced -- yes (uses FILE:/krb5/v5srvtab and manages hosts//self) dtsd -- not applicable; runs as the machine principal pwd_strengthd -- yes; uses FILE:/krb5/pwd_strength_tab secd (maintains three keys) -- not applicable Q: If the default password lifespan/expiration is never, then what problems might I cause by setting an expiration time or password lifespan in a running cell? A: DCE will not let you authenticate (acquire a TGT) with an expired password. As such, if you change the "password lifespan" policy from "never" or a period longer than 30 days, to days, then every host principal, user and server account that has not (by coincidence) updated their password/key within the last 30 days, will be locked out. Users would not be able to log in, server applications would no longer be able to obtain credentials and the dceds would no longer be able to obtain/refresh their machine credentials. Q: What can I do to avoid this situation, but still force password changes, if my cell has been up longer than I wish to set the lifespan for? A : Set an explicit "expiration date" policy, some time in the near future. (Make sure it's at least 30 minutes from the current time, to give the key management threads time to catch the change and a couple of chances to make the change.) At that specified date/time, all users, server apps and machines should have updated their passwords/keys. Recover from any problems that occurred (machines down during that time, users forgetting...), then set the "password lifespan" policy field to the desired limit. Q: Do all versions of DCE support the sec_key_mgmt_manage_key() functionality in the same way? A: Unfortunately not. DCE 1.0.x releases had an unfortunate limitation in this key mgmt call, in that it would not wake up until shortly before the key was due to expire (based on the expiration data that it obtained when the call was started or the last time through the loop after a change). DCE 1.1 should no longer have this problem, as the call wakes up every 10 minutes to see whether the expiration time has changed. Q: How can I work around this problem if I have older client machines, but DCE 1.1+ based servers? A: Either upgrade them all to an DCE 1.1 or later. If this is not possible, manually change the keys for each older client: rgy_edit-> kta -p hosts//self -a -r (on each DCE 1.0.x-based client machine). Do this for any accounts in the default keytable, and any servers running on older versions that also use the sec_key_mgmt_manage_key() call.