kadm_ser_wrap.c (kadm_ser_init): Use krb5_425_conv_principal instead
authorTheodore Tso <tytso@mit.edu>
Wed, 8 Jul 1998 05:34:11 +0000 (05:34 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 8 Jul 1998 05:34:11 +0000 (05:34 +0000)
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

src/kadmin/v4server/ChangeLog
src/kadmin/v4server/kadm_ser_wrap.c

index c8846ff141ae21ff7ad43a32fbce037e9d23bb32..89b58d43ce94c799f9643b8b10e7cb6695962949 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jul  8 01:32:52 1998  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * Makefile.in (build_pwfile): Add rule to build the build_pwfile
index 21ed70707ce742a50cee1452cd66158493dd55f3..2c5c8076c2518c52cfa4b0d8c6c2437ee996f826 100644 (file)
@@ -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 */