Follow-on to r24168: in kdb5_ldap_util, indirect through
authorGreg Hudson <ghudson@mit.edu>
Sun, 4 Jul 2010 18:34:04 +0000 (18:34 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sun, 4 Jul 2010 18:34:04 +0000 (18:34 +0000)
krb5_db_store_master_key instead of using the (now removed) default
implementation directly.

ticket: 6749
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24174 dc483132-0cff-0310-8789-dd5450dbe970

src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c

index cc918142c600f12843bde66c0e868730e8e1078f..0ee57d118e23ca4a859dfef17db05ecd466bb264 100644 (file)
@@ -852,11 +852,11 @@ kdb5_ldap_create(int argc, char *argv[])
         else
             mkey_kvno = 1;  /* Default */
 
-        retval = krb5_def_store_mkey(util_context,
-                                     global_params.stash_file,
-                                     master_princ,
-                                     mkey_kvno,
-                                     &master_keyblock, NULL);
+        retval = krb5_db_store_master_key(util_context,
+                                          global_params.stash_file,
+                                          master_princ,
+                                          mkey_kvno,
+                                          &master_keyblock, NULL);
         if (retval) {
             com_err(progname, errno, "while storing key");
             printf("Warning: couldn't stash master key.\n");