+Mon Sep 9 11:06:29 1996 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * loadv4.c: Don't call get_config_params again, since it's not
+ necessary, and breaks the policy database name if it is
+ manually set.
+
Wed Sep 4 17:34:58 1996 Theodore Y. Ts'o <tytso@mit.edu>
* loadv4.c (load_v4db): Fix argument parsing so that it actually works!
/*
- * admin/edit/loadv4.c
+ * kadmin/dbutil/loadv4.c
*
- * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * Copyright 1996 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
memset((char *)master_keyblock.contents, 0, master_keyblock.length);
/*
- * Cons up config params for new database.
+ * Cons up config params for new database; using the global_params
+ * is just fine.
*/
newparams = global_params;
- newparams.mask &= ~(KADM5_CONFIG_ADBNAME | KADM5_CONFIG_ADB_LOCKFILE);
- newparams.dbname = dbname;
- newparams.mask |= KADM5_CONFIG_DBNAME;
- if (retval = kadm5_get_config_params(context, NULL, NULL, &newparams,
- &newparams)) {
- com_err(PROGNAME, retval, "while retrieiving configuration "
- "parameters");
- return;
- }
/*
* Always create the policy db, even if we are not loading a dump