From e4d656b080c11a580f0eac7025595e4c3af5d10a Mon Sep 17 00:00:00 2001 From: Paul Park Date: Fri, 28 Apr 1995 22:03:54 +0000 Subject: [PATCH] Disable command recognition for not-fully-implemented commands git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5645 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v5server/ChangeLog | 6 ++++++ src/kadmin/v5server/proto_serv.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/kadmin/v5server/ChangeLog b/src/kadmin/v5server/ChangeLog index c71f27d48..c8daf39b6 100644 --- a/src/kadmin/v5server/ChangeLog +++ b/src/kadmin/v5server/ChangeLog @@ -1,3 +1,9 @@ + +Fri Apr 28 17:58:11 EDT 1995 Paul Park (pjpark@mit.edu) + + * proto_serv.c - ifdef-out commands which are not fully supported. + + Fri Apr 28 17:38:36 EDT 1995 Paul Park (pjpark@mit.edu) * srv_net.c, proto_serv.c - re-include for signal name diff --git a/src/kadmin/v5server/proto_serv.c b/src/kadmin/v5server/proto_serv.c index 475ddfdc6..44cf910ef 100644 --- a/src/kadmin/v5server/proto_serv.c +++ b/src/kadmin/v5server/proto_serv.c @@ -353,6 +353,7 @@ proto_serv(kcontext, my_id, cl_sock, sv_p, cl_p) err_aux = KRB5_ADM_BAD_ARGS; } } +#ifdef MOTD_SUPPORTED else if (!strcasecmp(arglist[0].data, KRB5_ADM_MOTD_CMD)) { DPRINT(DEBUG_REQUESTS, proto_debug_level, ("> %d:MOTD command\n", my_id)); @@ -371,6 +372,8 @@ proto_serv(kcontext, my_id, cl_sock, sv_p, cl_p) err_aux = KRB5_ADM_BAD_ARGS; } } +#endif /* MOTD_SUPPORTED */ +#ifdef MIME_SUPPORTED else if (!strcasecmp(arglist[0].data, KRB5_ADM_MIME_CMD)) { DPRINT(DEBUG_REQUESTS, proto_debug_level, ("> %d:MIME command\n", my_id)); @@ -386,6 +389,8 @@ proto_serv(kcontext, my_id, cl_sock, sv_p, cl_p) err_aux = KRB5_ADM_BAD_ARGS; } } +#endif /* MIME_SUPPORTED */ +#ifdef LANGUAGES_SUPPORTED else if (!strcasecmp(arglist[0].data, KRB5_ADM_LANGUAGE_CMD)) { DPRINT(DEBUG_REQUESTS, proto_debug_level, ("> %d:LANGUAGE command\n", my_id)); @@ -410,6 +415,7 @@ proto_serv(kcontext, my_id, cl_sock, sv_p, cl_p) err_aux = KRB5_ADM_BAD_ARGS; } } +#endif /* LANGUAGES_SUPPORTED */ else { DPRINT(DEBUG_REQUESTS, proto_debug_level, ("> %d:UNKNOWN command %s\n", my_id, -- 2.26.2