[322] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

kdb5_edit lddb was broken

daemon@ATHENA.MIT.EDU (Marc Horowitz)
Fri Jul 2 18:14:17 1993

To: krb5-bugs@MIT.EDU
Cc: geer@GZA.COM, warlord@GZA.COM, marc@GZA.COM
Date: Fri, 02 Jul 1993 18:14:21 -0400
From: Marc Horowitz <marc@GZA.COM>

The code which read the alt_key was writing into the key field of the
database.  This was bad.  It only affected users who had changed their
passwords, since original passwords had no alt_key, so the length was
zero, so the original key was not corrupted.

The patch is obvious, and enclosed.

		Marc

*** 1.1	1993/07/02 22:02:46
--- /afs/gza.com/development/krb5.beta2/src/src/admin/edit/dump.c	1993/07/02 22:10:12
***************
*** 382,388 ****
  				load_error++;
  				break;
  			}
! 			entry.key.contents[i] = tmp1;
  		}
  		if (fscanf(f, "\t%u\t", &stype) != 1) {
  		    fprintf(stderr, "Couldn't parse line #%d\n",
--- 382,388 ----
  				load_error++;
  				break;
  			}
! 			entry.alt_key.contents[i] = tmp1;
  		}
  		if (fscanf(f, "\t%u\t", &stype) != 1) {
  		    fprintf(stderr, "Couldn't parse line #%d\n",

home help back first fref pref prev next nref lref last post