diff options
author | Barry Jaspan <bjaspan@mit.edu> | 1996-11-05 21:24:33 +0000 |
---|---|---|
committer | Barry Jaspan <bjaspan@mit.edu> | 1996-11-05 21:24:33 +0000 |
commit | e44d76a434319a150c95354f0ce76e3dd1d51be7 (patch) | |
tree | fd7c67ce4eac85a83256d761b4fbd6f7970b23ec /src/kadmin | |
parent | 12a40b3442800468977a3fe08bf47c29448bdbd3 (diff) | |
download | krb5-e44d76a434319a150c95354f0ce76e3dd1d51be7.tar.gz krb5-e44d76a434319a150c95354f0ce76e3dd1d51be7.tar.xz krb5-e44d76a434319a150c95354f0ce76e3dd1d51be7.zip |
* admin_server.c: use params.admin_keytab instead of a hard-coded
value [krb5-admin/30]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9299 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin')
-rw-r--r-- | src/kadmin/v4server/ChangeLog | 5 | ||||
-rw-r--r-- | src/kadmin/v4server/admin_server.c | 12 |
2 files changed, 10 insertions, 7 deletions
diff --git a/src/kadmin/v4server/ChangeLog b/src/kadmin/v4server/ChangeLog index 8fdc9415e6..f83cf3cccb 100644 --- a/src/kadmin/v4server/ChangeLog +++ b/src/kadmin/v4server/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 21 17:20:32 1996 Barry Jaspan <bjaspan@mit.edu> + + * admin_server.c: use params.admin_keytab instead of a hard-coded + value [krb5-admin/30] + Thu Sep 26 17:54:33 1996 Barry Jaspan <bjaspan@mit.edu> * admin_server.c (process_client): allow keytab to be specified on diff --git a/src/kadmin/v4server/admin_server.c b/src/kadmin/v4server/admin_server.c index e9b09bea1b..fb6ff7d056 100644 --- a/src/kadmin/v4server/admin_server.c +++ b/src/kadmin/v4server/admin_server.c @@ -66,11 +66,6 @@ admin_params prm; /* The command line parameters struct */ char prog[32]; /* WHY IS THIS NEEDED??????? */ char *progname = prog; char *acldir = DEFAULT_ACL_DIR; -#ifdef OVSEC_KADM -char *keytab = "FILE:/krb5/ovsec_adm.srvtab"; -#else -char *keytab = NULL; -#endif char krbrlm[REALM_SZ]; extern Kadm_Server server_parm; krb5_context kadm_context; @@ -153,7 +148,10 @@ char *argv[]; (void) strncpy(krbrlm, optarg, sizeof(krbrlm) - 1); break; case 'k': - keytab = optarg; +#ifdef OVSEC_KADM + params.admin_keytab = optarg; + params.mask |= KADM5_CONFIG_ADMIN_KEYTAB; +#endif break; case 'h': /* get help on using admin_server */ default: @@ -406,7 +404,7 @@ void process_client(fd, who) server_parm.sinst, server_parm.krbrlm); retval = ovsec_kadm_init_with_skey(service_name, - keytab, + params.admin_keytab, OVSEC_KADM_ADMIN_SERVICE, krbrlm, OVSEC_KADM_STRUCT_VERSION, OVSEC_KADM_API_VERSION_1, |