+Wed Apr 19 13:59:47 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * kdb5_edit.c (kdb5_edit_Init): If a default realm is specified
+ (with -r), use krb5_set_default_realm so that created keys
+ will have the correct realm.
+
Thu Mar 23 23:28:26 1995 Theodore Y. Ts'o <tytso@dcl>
* kdb5_edit.c (show_principal, parse_princ_args): Add
exit(1);
}
krb5_use_cstype(edit_context, &master_encblock, etype);
- if (!cur_realm) {
+
+ if (cur_realm) {
+ if (retval = krb5_set_default_realm(edit_context, cur_realm)) {
+ com_err(progname, retval, "while setting default realm name");
+ exit(1);
+ }
+ } else {
if (retval = krb5_get_default_realm(edit_context, &defrealm)) {
com_err(progname, retval, "while retrieving default realm name");
exit(1);
}
(void) strcpy(cur_realm, defrealm);
}
+
(void) set_dbname_help(progname, dbname);
exit_status = 0; /* It's OK if we get errors in set_dbname_help */
return request;