From: Theodore Tso Date: Wed, 8 Jul 1998 05:34:11 +0000 (+0000) Subject: kadm_ser_wrap.c (kadm_ser_init): Use krb5_425_conv_principal instead X-Git-Tag: krb5-1.1-beta1~670 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b21107bbc2eda0d16a201c154da50c00e567e41b;p=krb5.git kadm_ser_wrap.c (kadm_ser_init): Use krb5_425_conv_principal instead of krb5_build_principal to create the changepw sprinc principal. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10625 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/v4server/ChangeLog b/src/kadmin/v4server/ChangeLog index c8846ff14..89b58d43c 100644 --- a/src/kadmin/v4server/ChangeLog +++ b/src/kadmin/v4server/ChangeLog @@ -1,3 +1,9 @@ +Wed Jul 8 01:32:52 1998 Theodore Y. Ts'o + + * kadm_ser_wrap.c (kadm_ser_init): Use krb5_425_conv_principal + instead of krb5_build_principal to create the changepw + sprinc principal. + Fri Jul 3 18:17:48 1998 Theodore Y. Ts'o * Makefile.in (build_pwfile): Add rule to build the build_pwfile diff --git a/src/kadmin/v4server/kadm_ser_wrap.c b/src/kadmin/v4server/kadm_ser_wrap.c index 21ed70707..2c5c8076c 100644 --- a/src/kadmin/v4server/kadm_ser_wrap.c +++ b/src/kadmin/v4server/kadm_ser_wrap.c @@ -65,12 +65,9 @@ kadm_ser_init(inter, realm) (void) strcpy(server_parm.sname, PWSERV_NAME); (void) strcpy(server_parm.sinst, KRB_MASTER); (void) strcpy(server_parm.krbrlm, realm); - if (krb5_build_principal(kadm_context, - &server_parm.sprinc, - strlen(realm), - realm, - PWSERV_NAME, - KRB_MASTER, 0)) + if (krb5_425_conv_principal(kadm_context, server_parm.sname, + server_parm.sinst, server_parm.krbrlm, + &server_parm.sprinc)) return KADM_NO_MAST; server_parm.admin_fd = -1; /* setting up the addrs */