From b1d2bec533e08133dd22f12ac9babc1d942a2d73 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Sat, 19 Feb 2000 02:05:53 +0000 Subject: [PATCH] * kadm_rpc_svc.c (kadm_1): Update to include new api functions * ovsec_kadmd.c (log_badverf): Update proc_names. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12057 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/server/ChangeLog | 6 ++++++ src/kadmin/server/kadm_rpc_svc.c | 30 ++++++++++++++++++++++++++++++ src/kadmin/server/ovsec_kadmd.c | 4 ++++ 3 files changed, 40 insertions(+) diff --git a/src/kadmin/server/ChangeLog b/src/kadmin/server/ChangeLog index 3e9d8f902..c446633e7 100644 --- a/src/kadmin/server/ChangeLog +++ b/src/kadmin/server/ChangeLog @@ -1,3 +1,9 @@ +2000-02-18 Tom Yu + + * kadm_rpc_svc.c (kadm_1): Update to include new api functions. + + * ovsec_kadmd.c (log_badverf): Update proc_names. + 2000-02-17 Tom Yu * server_stubs.c: Add create_principal3_1, chpass_principal3_1, diff --git a/src/kadmin/server/kadm_rpc_svc.c b/src/kadmin/server/kadm_rpc_svc.c index 817ea3006..5d9e8c33e 100644 --- a/src/kadmin/server/kadm_rpc_svc.c +++ b/src/kadmin/server/kadm_rpc_svc.c @@ -50,6 +50,12 @@ void kadm_1(rqstp, transp) dpol_arg delete_policy_1_arg; mpol_arg modify_policy_1_arg; gpol_arg get_policy_1_arg; + setkey_arg setkey_principal_1_arg; + setv4key_arg setv4key_principal_1_arg; + cprinc3_arg create_principal3_1_arg; + chpass3_arg chpass_principal3_1_arg; + chrand3_arg chrand_principal3_1_arg; + setkey3_arg setkey_principal3_1_arg; } argument; char *result; bool_t (*xdr_argument)(), (*xdr_result)(); @@ -172,6 +178,30 @@ void kadm_1(rqstp, transp) local = (char *(*)()) init_1; break; + case CREATE_PRINCIPAL3: + xdr_argument = xdr_cprinc3_arg; + xdr_result = xdr_generic_ret; + local = (char *(*)()) create_principal3_1; + break; + + case CHPASS_PRINCIPAL3: + xdr_argument = xdr_chpass3_arg; + xdr_result = xdr_generic_ret; + local = (char *(*)()) chpass_principal3_1; + break; + + case CHRAND_PRINCIPAL3: + xdr_argument = xdr_chrand3_arg; + xdr_result = xdr_chrand_ret; + local = (char *(*)()) chrand_principal3_1; + break; + + case SETKEY_PRINCIPAL3: + xdr_argument = xdr_setkey3_arg; + xdr_result = xdr_generic_ret; + local = (char *(*)()) setkey_principal3_1; + break; + default: krb5_klog_syslog(LOG_ERR, "Invalid KADM5 procedure number: %s, %d", inet_ntoa(rqstp->rq_xprt->xp_raddr.sin_addr), diff --git a/src/kadmin/server/ovsec_kadmd.c b/src/kadmin/server/ovsec_kadmd.c index 4e7621638..608f8b8a7 100644 --- a/src/kadmin/server/ovsec_kadmd.c +++ b/src/kadmin/server/ovsec_kadmd.c @@ -871,6 +871,10 @@ void log_badverf(gss_name_t client_name, gss_name_t server_name, {15, "GET_POLS"}, {16, "SETKEY_PRINCIPAL"}, {17, "SETV4KEY_PRINCIPAL"}, + {18, "CREATE_PRINCIPAL3"}, + {19, "CHPASS_PRINCIPAL3"}, + {20, "CHRAND_PRINCIPAL3"}, + {21, "SETKEY_PRINCIPAL3"} }; #define NPROCNAMES (sizeof (proc_names) / sizeof (struct procnames)) OM_uint32 minor; -- 2.26.2