Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Q&A on server key management
@ 1996-04-26  4:00 Rich Salz
  1996-04-29  4:00 ` Chris Cowan
  1996-05-06  4:00 ` Chris Cowan
  0 siblings, 2 replies; 4+ messages in thread
From: Rich Salz @ 1996-04-26  4:00 UTC (permalink / raw)



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/<machine>/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/<hostsname>/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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Q&A on server key management
  1996-04-26  4:00 Q&A on server key management Rich Salz
@ 1996-04-29  4:00 ` Chris Cowan
  1996-05-02  4:00   ` Rich Salz
  1996-05-06  4:00 ` Chris Cowan
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Cowan @ 1996-04-29  4:00 UTC (permalink / raw)



>>>>> "Rich" == Rich Salz <rsalz@osf.org> writes:

    Rich> The following brief Q&A is based on text provided by Mike Burati at HP and
    Rich> reviewed and modified by OSF and HP.  We hope that Jon Mauney will consider
    Rich> adding it to his DCE FAQ.

    Rich> Q:  Do DCE servers (both those provided by DCE and those written by third
    Rich>     parties) automatically update their long term secret keys?

    Rich> A:  No.  Except for exceptional circumstances, all DCE servers should
    Rich>     periodically change their long-term key.  This is done by spawning a
    Rich>     thread that calls sec_key_mgmt_manage_key() (which never returns under
    Rich>     normal circumstances).  As distributed by OSF, DCE has no password
    Rich>     expirations set (sec_key_mgmt_manage_key() won't actually do anything).
    Rich>     You may set the password expiration time or lifespan using an admin
    Rich>     tool such as rgy_edit or dcecp.  In 1.0.x releases, DCE only enforced
    Rich>     passwd expiration in the clients (such as printing a warning in
    Rich>     dce_login).  As of DCE 1.1, however, the security server will no longer
    Rich>     grant a TGT for an account who's password/key has expired, so servers
    Rich>     that aren't correctly running the manage key code before their password
    Rich>     expires will require administrative intervention to become operational
    Rich>     again.

    Rich>     The following table shows what the OSF-provided servers do:
    Rich>    	cdsd -- yes; uses FILE:/krb5/v5srvtab
    Rich>    	dced -- yes (uses FILE:/krb5/v5srvtab and manages hosts/<machine>/self)
    Rich>    	dtsd -- not applicable; runs as the machine principal
    Rich>    	pwd_strengthd -- yes; uses FILE:/krb5/pwd_strength_tab
    Rich>    	secd (maintains three keys) -- not applicable

Can you identify the principals in these cases, particularly for secd?

- I know there's dce-rgy, what are the other two?

Also, a while back I posted a question about what happens when two 
key management threads run against the same principal/keytab entry?
Is this safe?  

Thanks,
-- 
Chris Cowan 
ISSC (DCE/DSM Architecture) 
-------------------------------------------------------------------------
SMTP Mail:      cc@austin.ibm.com       Phone: 512-823-0113 





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Q&A on server key management
  1996-04-29  4:00 ` Chris Cowan
@ 1996-05-02  4:00   ` Rich Salz
  0 siblings, 0 replies; 4+ messages in thread
From: Rich Salz @ 1996-05-02  4:00 UTC (permalink / raw)



In <w5w91ffyu6m.fsf@mantis.austin.ibm.com> cc@austin.ibm.com writes:
>Can you identify the principals in these cases, particularly for secd?
>- I know there's dce-rgy, what are the other two?
dce-ptgt.  And one for the AS but I forget what.

>Also, a while back I posted a question about what happens when two 
>key management threads run against the same principal/keytab entry?
>Is this safe?  

Probably not.  Why would you want to do this?
	/r$



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Q&A on server key management
  1996-04-26  4:00 Q&A on server key management Rich Salz
  1996-04-29  4:00 ` Chris Cowan
@ 1996-05-06  4:00 ` Chris Cowan
  1 sibling, 0 replies; 4+ messages in thread
From: Chris Cowan @ 1996-05-06  4:00 UTC (permalink / raw)



>>>>> "Rich" == Rich Salz <rsalz@osf.org> writes:

    Rich> In <w5w91ffyu6m.fsf@mantis.austin.ibm.com> cc@austin.ibm.com writes:
    >> Can you identify the principals in these cases, particularly for secd?
    >> - I know there's dce-rgy, what are the other two?
    Rich> dce-ptgt.  And one for the AS but I forget what.

    >> Also, a while back I posted a question about what happens when two 
    >> key management threads run against the same principal/keytab entry?
    >> Is this safe?  

    Rich> Probably not.  Why would you want to do this?
    Rich> 	/r$

It's not that I want, but that I want to know if I have to protect
against it.  I wrote a wrapper to authenticate to dce, fork and exec a
long-running process (non-dce) and then start a context refresher and
key management thread in the parent.

Unfortunately, it occurred to me that someone might get lazy and try
to use the "self" principal or another key managed locally by dced.
Is there any easy way to detect "management" of a key?   (A simple
fix would be to try to lock the KeyFile to prevent a second process
from doing anything!)

  
-- 
Chris Cowan 
ISSC (DCE/DSM Architecture) 
-------------------------------------------------------------------------
SMTP Mail:      cc@austin.ibm.com       Phone: 512-823-0113 
					FAX:   512-823-0727




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-05-06  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-26  4:00 Q&A on server key management Rich Salz
1996-04-29  4:00 ` Chris Cowan
1996-05-02  4:00   ` Rich Salz
1996-05-06  4:00 ` Chris Cowan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox