diff --git a/appl/ftp/ftp/main.c b/appl/ftp/ftp/main.c index d4cdd13ab..3c861bdb5 100644 --- a/appl/ftp/ftp/main.c +++ b/appl/ftp/ftp/main.c @@ -59,8 +59,10 @@ struct getargs getargs[] = { "passive mode", NULL}, { NULL, 't', arg_counter, &trace, "Packet tracing", NULL}, +#ifdef KRB5 { "gss-bindings", 0, arg_negative_flag, &ftp_do_gss_bindings, "Use GSS-API bindings", NULL}, +#endif { NULL, 'v', arg_counter, &verbose, "verbosity", NULL}, { NULL, 'K', arg_negative_flag, &use_kerberos, @@ -98,7 +100,9 @@ main(int argc, char **argv) lineedit = 1; passivemode = 0; /* passive mode not active */ use_kerberos = 1; +#ifdef KRB5 ftp_do_gss_bindings = 1; +#endif if(getarg(getargs, num_args, argc, argv, &optind)) usage(1); diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index 1daaca151..0d2e30ace 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -223,7 +223,9 @@ struct getargs args[] = { { NULL, 'v', arg_flag, &debug, "enable debugging" }, { "builtin-ls", 'B', arg_flag, &use_builtin_ls, "use built-in ls to list files" }, { "good-chars", 0, arg_string, &good_chars, "allowed anonymous upload filename chars" }, +#ifdef KRB5 { "gss-bindings", 0, arg_flag, &ftp_do_gss_bindings, "Require GSS-API bindings", NULL}, +#endif { "version", 0, arg_flag, &version_flag }, { "help", 'h', arg_flag, &help_flag } };