svn rev #24141: trunk/src/kadmin/dbutil/

ghudson@MIT.EDU ghudson at MIT.EDU
Mon Jun 21 15:56:30 EDT 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=24141
Commit By: ghudson
Log Message:
ticket: 6345
target_version: 1.8.3
tags: pullup

kdb5_stash() contains its own kdb5_db_open() call (because it doesn't
use util_context for some reason), which didn't work with the LDAP
back end because LDAP doesn't recognize KRB5_KDB_SRV_TYPE_OTHER.  As a
minimal fix, change that to KRB5_KDB_SRV_TYPE_ADMIN to be consistent
with open_db_and_mkey()--see also r18736.



Changed Files:
U   trunk/src/kadmin/dbutil/kdb5_stash.c
Modified: trunk/src/kadmin/dbutil/kdb5_stash.c
===================================================================
--- trunk/src/kadmin/dbutil/kdb5_stash.c	2010-06-21 15:25:38 UTC (rev 24140)
+++ trunk/src/kadmin/dbutil/kdb5_stash.c	2010-06-21 19:56:29 UTC (rev 24141)
@@ -136,7 +136,7 @@
     }
 
     retval = krb5_db_open(context, db5util_db_args,
-                          KRB5_KDB_OPEN_RW | KRB5_KDB_SRV_TYPE_OTHER);
+                          KRB5_KDB_OPEN_RW | KRB5_KDB_SRV_TYPE_ADMIN);
     if (retval) {
         com_err(progname, retval, "while initializing the database '%s'",
                 dbname);




More information about the cvs-krb5 mailing list