From owner-freebsd-security Thu Jan 6 15:38:59 2000 Delivered-To: freebsd-security@freebsd.org Received: from algieba.leonis.supercluster.net (algieba.leonis.supercluster.net [212.68.66.81]) by hub.freebsd.org (Postfix) with ESMTP id AF9E415771 for ; Thu, 6 Jan 2000 15:38:13 -0800 (PST) (envelope-from S.Brandenburg@tu-bs.de) Received: from tu-bs.de (localhost.leonis.supercluster.net [127.0.0.1]) by algieba.leonis.supercluster.net (8.9.3/8.8.5) with ESMTP id XAA02971; Thu, 6 Jan 2000 23:36:17 GMT Message-ID: <387526F0.6060620F@tu-bs.de> Date: Thu, 06 Jan 2000 23:36:16 +0000 From: Sven Brandenburg X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.4-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Bjoern Groenvall Cc: freebsd-security@FreeBSD.ORG Subject: Re: kerberos and Y2K ? References: <387380C0.41E4AE34@tu-bs.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Bjoern Groenvall wrote: [..] > You may also use more recent sources from ftp.pdc.kth.se:pub/krb/src. Thank you. I`ll take a look on that :-) [..] > There used to be a real stupid default value for the expiration date > in kdb_init.c that was not fixed until 19980609. I don't know exactly > what your sources look like but here is a possible fix: > > - principal.exp_date = 946702799; /* Happy new century */ > - strncpy(principal.exp_date_txt, "12/31/99", DATE_SZ); > principal.mod_date = time(0); > + *principal.mod_date_txt = '\0'; > + principal.exp_date = principal.mod_date + 5 * 365 * 24 * 60 * 60; > + *principal.exp_date_txt = '\0'; That`s it. But I wonder why this is still in the source tree. I fetched the crypto stuff from cvsup.internat.FreeBSD.org 2 days ago and made world (3.4-STABLE) *before* I tried to use kerberos. I believe this is the same with cvsup-master.freebsd.org. A quick look into the -current tree reveals: the patch above has been applied there but not to -stable. I wanted to switch to -current within the next few days anyway... ;-) Thanks for the quick help, Sven ----snip---- I will not trust you, I, Nor longer stay in your company. Your hands than mine are quicker for a fray: My legs are longer though, to run away. William Shakespeare, A Midsummer Night`s Dream, 1596 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message