+Thu Oct 31 11:20:22 1996 Ezra Peisach <epeisach@mit.edu>
+
+ * main.c (main): Add -T keyfile and -D debug_level
+ options. [krb5-admin/42]
+
Tue Sep 10 14:37:23 1996 Tom Yu <tlyu@mit.edu>
* v5passwd.M: remove extra args to .TH
void usage()
{
fprintf(stderr, "Usage: kadmind [-r realm] [-m] [-nofork] "
- "[-port port-number]\n");
+ "[-D debuglevel] [-T keytable] [-port port-number]\n");
exit(1);
}
int main(int argc, char *argv[])
{
int ret, rlen, nofork, oldnames = 0;
+ int timeout = -1;
krb5_error_code code;
int debug_level = 0;
#if POSIX_SIGNALS
usage();
params.kadmind_port = atoi(*argv);
params.mask |= KADM5_CONFIG_KADMIND_PORT;
+ } else if (strcmp(*argv, "-T") == 0) {
+ argc--; argv++;
+ if (!argc)
+ usage();
+ params.admin_keytab = *argv;
+ params.mask |= KADM5_CONFIG_ADMIN_KEYTAB;
+ argc--; argv++;
+ continue;
+ } else if (strcmp(*argv, "-D") == 0) {
+ if (!argc)
+ usage();
+ argc--; argv++;
+ debug_level = atoi(*argv);
} else
break;
argc--; argv++;
exit(1);
}
+ if (code = proto_init(context, debug_level, timeout)) {
+ krb5_klog_syslog(LOG_ERR, "%s: %s while initializing proto",
+ programname, error_message(code));
+ fprintf(stderr, "%s: %s while initializing proto\n",
+ programname, error_message(code));
+ }
if (
#if POSIX_SETJMP