From 15c0f9b5c5b681b8d35b0b6ce22e8a099a28b7fe Mon Sep 17 00:00:00 2001 From: Paul Park Date: Thu, 1 Jun 1995 18:52:17 +0000 Subject: [PATCH] Change admin instance name to kadmin and fix bug in kadmin_list git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5929 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v5client/ChangeLog | 8 +++ src/kadmin/v5client/kadmin5.M | 4 +- src/kadmin/v5client/kadmin5.c | 114 ++++++++++++++++------------------ 3 files changed, 62 insertions(+), 64 deletions(-) diff --git a/src/kadmin/v5client/ChangeLog b/src/kadmin/v5client/ChangeLog index 667a3ce92..4188e06b8 100644 --- a/src/kadmin/v5client/ChangeLog +++ b/src/kadmin/v5client/ChangeLog @@ -1,4 +1,12 @@ +Thu Jun 1 14:31:49 EDT 1995 Paul Park (pjpark@mit.edu) + * kadmin5.c: Change the default admin instance name to "kadmin" + * kadmin5.c(kadmin_list): Compare principals to each of the supplied + regular expressions instead of only to the last one. This + is slightly inefficient, but correct. + * kadmin5.M: Document the change in default instance name. + + Mon May 15 10:57:17 EDT 1995 Paul Park (pjpark@mit.edu) * kadmin5.M - Change default principal name for kadmin5. diff --git a/src/kadmin/v5client/kadmin5.M b/src/kadmin/v5client/kadmin5.M index 8443c6729..63a5cf79c 100644 --- a/src/kadmin/v5client/kadmin5.M +++ b/src/kadmin/v5client/kadmin5.M @@ -45,7 +45,7 @@ specifies the default realm. .B principal specifies a principal name to use instead of the default .I user -.B /kadmin5@realm. +.B /kadmin@realm. .IP \-m specifies that multiple operations will be permitted for only one entry of the administrative principal's password. @@ -73,7 +73,7 @@ Principals who may perform administrative operations are controlled by the .I kadmind5 access control list. The default administrative principal is .I user -.B /kadmin5@realm. +.B /kadmin@realm. .PP One command may be specified on the command line, or if no command is provided, an interactive command loop is entered for the administrator to enter commands. diff --git a/src/kadmin/v5client/kadmin5.c b/src/kadmin/v5client/kadmin5.c index 92ed342f5..5aa9fd039 100644 --- a/src/kadmin/v5client/kadmin5.c +++ b/src/kadmin/v5client/kadmin5.c @@ -64,7 +64,7 @@ static char *re_string = (char *) NULL; static const char *help_option = "-help"; static const char *verbose_option = "-verbose"; static const char *force_option = "-force"; -static const char *kadmin_instance = "kadmin5"; +static const char *kadmin_instance = "kadmin"; static const char *wr_ktab_type = "WRFILE"; @@ -1046,20 +1046,7 @@ kadmin_list(argc, argv) requestname = argv[0]; error = 0; verbose = 0; -#if HAVE_REGCOMP - if (match_error = regcomp(&match_exp, lprinc_all_regexp, REG_EXTENDED)) { - errmsg_size = regerror(match_error, - &match_exp, - match_errmsg, - sizeof(match_errmsg)); - com_err(requestname, 0, lprinc_regexp_fmt, lprinc_all_regexp, - match_errmsg); - return; - } -#else /* HAVE_REGCOMP */ - re_comp(".*"); /* Accept everything */ -#endif /* HAVE_REGCOMP */ - + for (i=1; i