From 2297bdd9f3aa745082431ecf4d33f31ecc7301ab Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 27 Feb 1991 13:37:16 +0000 Subject: [PATCH] add salt stuff fix up realm stuff git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1809 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/create/kdb5_mkdums.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tests/create/kdb5_mkdums.c b/src/tests/create/kdb5_mkdums.c index f1bf9936b..e549dad27 100644 --- a/src/tests/create/kdb5_mkdums.c +++ b/src/tests/create/kdb5_mkdums.c @@ -12,7 +12,7 @@ */ #if !defined(lint) && !defined(SABER) -static char rcsid_kdb_edit_c[] = +static char rcsid_kdb_mkdums_c[] = "$Id$"; #endif /* !lint & !SABER */ @@ -192,11 +192,10 @@ char *argv[]; dbname = DEFAULT_DBM_FILE; /* XXX? */ if (!cur_realm) { - if (retval = krb5_get_default_realm(sizeof(defrealm), defrealm)) { + if (retval = krb5_get_default_realm(&cur_realm)) { com_err(progname, retval, "while retrieving default realm name"); exit(1); } - cur_realm = defrealm; } if (retval = set_dbname_help(progname, dbname)) exit(retval); @@ -287,6 +286,9 @@ OLDDECLARG(char *, str_newprinc) return; } newentry.attributes = mblock.flags; + newentry.salt_type = KRB5_KDB_SALTTYPE_NORMAL; + newentry.salt_length = 0; + newentry.salt = 0; retval = krb5_db_put_principal(&newentry, &one); if (retval) { -- 2.26.2