+Fri May 5 11:07:52 EDT 1995 Paul Park (pjpark@mit.edu)
+ #ifdef out language and support. Remove description from manpage.
+
+
Fri Apr 28 10:14:12 EDT 1995 Paul Park (pjpark@mit.edu)
* Use new library libkadm. Remove unused reference to libkdb5.
* Use size_t instead of int for size calculations.
.SH SYNOPSIS
.B kpasswd
[
-.B \-m
-] [
-.B \-l
-language
-] [
.B \-u
.IR username[/instance][@realm]
]
command is used to change a Kerberos principal's password.
If the
-.I \-n
+.I \-u
option is specified, a partially or fully qualified Kerberos principal may
be supplied. Otherwise, the principal name is derived from the identity
of the user invoking the
.I kpasswd
command.
-The
-.I \-l
-and
-.I \-m
-flags may be specified to qualify how the administrative server is to issue
-messages. The
-.I \-l
-flag specifies which
-.I language
-to issue messages in, while the
-.I \-m
-flag enables MIME-encoded messages. The support of these flags and the
-interpretation of the
-.I language
-paramter is specific to the administrative server.
-
.PP
The
.I kpasswd
static const char *kpwd_old_password_prompt = " Enter old password: ";
static const char *kpwd_old_pwd_name_fmt = "Enter old password for %s: ";
-static const char *kpwd_usage_error_fmt = "%s: usage is %s [-u user] [-m] [-l language].\n";
+#ifdef LANGUAGES_SUPPORTED
+static const char *kpwd_usage_error_fmt = "%s: usage is %s [-u user] [-l language]\n";
+#else /* LANGUAGES_SUPPORTED */
+static const char *kpwd_usage_error_fmt = "%s: usage is %s [-u user]\n";
+#endif /* LANGUAGES_SUPPORTED */
static const char *kpwd_extra_args = "extra arguments";
static const char *kpwd_bad_option_fmt = "%s: unrecognized option -%c.\n";
static const char *kpwd_no_memory_fmt = "%s: not enough resources to allocate %d bytes for %s.\n";
krb5_data *complist;
{
krb5_int32 i;
+ /*
+ * If language/mime suporrt enabled, need to have mime-decoder here.
+ */
if (ncomps > 0) {
fprintf(stderr, "%s - %s: %s\n", progname, kpwd_serror_head,
complist[0].data);
/*
* Usage is:
- * kpasswd [-u user] [-m] [-l language]
+ * kpasswd [-u user] [-l language]
*/
while ((option = getopt(argc, argv, "l:mu:")) != EOF) {
switch (option) {
}
strcpy(name, optarg);
break;
- case 'm':
- mflag++;
- break;
+#ifdef LANGUAGES_SUPPORTED
case 'l':
lflag++;
+ mflag++;
if ((language = (char *) malloc(strlen(optarg)+1)) == NULL) {
fprintf(stderr, kpwd_no_memory_fmt, argv[0],
strlen(optarg)+1, kpwd_args_text);
}
strcpy(language, optarg);
break;
+#endif /* LANGUAGES_SUPPORTED */
default:
error++;
break;
free(opwd_prompt);
send_quit = 1;
+#ifdef LANGUAGES_SUPPORTED
/*
* We have the connection - see if we have to send some precursory data.
*/
}
krb5_free_adm_data(kcontext, lang_ncomps, lang_reply);
}
+#endif /* LANGUAGES_SUPPORTED */
/* Now - Actually change the password. */
for (npass_tries = 1; npass_tries <= KPWD_MAX_TRIES; npass_tries++) {
+Fri May 5 11:11:39 EDT 1995 Paul Park (pjpark@mit.edu)
+ #ifdef out language flags. Remove description from manpage.
+
+
Fri Apr 28 17:58:11 EDT 1995 Paul Park (pjpark@mit.edu)
* proto_serv.c - ifdef-out commands which are not fully supported.
.B \-k
mkeytype
] [
-.B \-l
-langlist
-] [
-.B \-m
-1|0
-] [
.B \-t
timeout
] [
Enables certain debugging features and messages selected by
.B debugmask.
.PP
-.B Protocol Message flags
-.IP \-l
-.B langlist
-specifies the list of supported language names [not implemented].
-.IP \-m
-Enables (
-.B 1
-) or disables (
-.B 0
-) MIME encoding support [not implemented].
.SH ACL FILE
.PP
#define LOG_AUTH 0
#endif /* LOG_AUTH */
-static const char *usage_format = "%s: usage is %s [-a aclfile] [-d database] [-e enctype] [-i]\n\t[-k mkeytype] [-l langlist] [-m bool] [-r realm] [-t timeout]\n\t[-D dbg] [-M mkeyname].\n";
+#ifdef LANGUAGES_SUPPORTED
+static const char *usage_format = "%s: usage is %s [-a aclfile] [-d database] [-e enctype] [-i]\n\t[-k mkeytype] [-l langlist] [-r realm] [-t timeout]\n\t[-D dbg] [-M mkeyname].\n";
+#else /* LANGUAGES_SUPPORTED */
+static const char *usage_format = "%s: usage is %s [-a aclfile] [-d database] [-e enctype] [-i]\n\t[-k mkeytype] [-r realm] [-t timeout]\n\t[-D dbg] [-M mkeyname].\n";
+#endif /* LANGUAGES_SUPPORTED */
static const char *fval_not_number = "%s: value (%s) specified for -%c is not numeric.\n";
static const char *extra_params = "%s extra paramters beginning with %s... \n";
static const char *no_memory_fmt = "%s: cannot allocate %d bytes for %s.\n";
error++;
}
break;
+#ifdef LANGUAGES_SUPPORTED
case 'l':
language_list = optarg;
+ mime_enabled = 1;
break;
- case 'm':
- if (sscanf(optarg, "%d", &mime_enabled) != 1) {
- fprintf(stderr, fval_not_number, argv[0], optarg, 'm');
- error++;
- }
- break;
+#endif /* LANGUAGES_SUPPORTED */
case 'r':
db_realm = optarg;
break;