diff options
author | Karl Ramm <kcr@mit.edu> | 2007-12-28 03:23:47 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2007-12-28 03:23:47 +0000 |
commit | b6a203fa06087c2eb6250dd997aa5d8f6ae94eb7 (patch) | |
tree | 1d64b522b76bb26a6dd782d77a8f1d07862a7ba3 /server/main.c | |
parent | 92a6bdd61902ebd8ceadf79588845ff9bcc78d38 (diff) |
ostensibly accept both sorts of authentication when offering brain dumps, and have a command line switch to choose between the sort you use when getting them
Diffstat (limited to 'server/main.c')
-rw-r--r-- | server/main.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/server/main.c b/server/main.c index 0f2aa4c..aa7516e 100644 --- a/server/main.c +++ b/server/main.c @@ -125,6 +125,16 @@ struct in_addr my_addr; char *bdump_version = "1.2"; #ifdef HAVE_KRB5 +int bdump_auth_proto = 5; +#else /* HAVE_KRB5 */ +#ifdef HAVE_KRB4 +int bdump_auth_proto = 4; +#else /* HAVE_KRB4 */ +int bdump_auth_proto = 0; +#endif /* HAVE_KRB4 */ +#endif /* HAVE_KRB5 */ + +#ifdef HAVE_KRB5 krb5_ccache Z_krb5_ccache; krb5_keyblock *__Zephyr_keyblock; #else @@ -167,7 +177,7 @@ main(argc, argv) programname = (programname) ? programname + 1 : argv[0]; /* process arguments */ - while ((optchar = getopt(argc, argv, "dsnv:f:k:")) != EOF) { + while ((optchar = getopt(argc, argv, "dsnv4:f:k:")) != EOF) { switch(optchar) { case 'd': zdebug = 1; @@ -192,6 +202,9 @@ main(argc, argv) init_from_dump = 0; dumpfile = optarg; break; + case '4': + bdump_auth_proto = 4; + break; case '?': default: usage(); |