pull up r24141 from trunk
authorTom Yu <tlyu@mit.edu>
Wed, 21 Jul 2010 17:55:42 +0000 (17:55 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 21 Jul 2010 17:55:42 +0000 (17:55 +0000)
 ------------------------------------------------------------------------
 r24141 | ghudson | 2010-06-21 15:56:29 -0400 (Mon, 21 Jun 2010) | 10 lines

 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.

ticket: 6345
version_fixed: 1.8.3
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-8@24199 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/dbutil/kdb5_stash.c

index c04f006af0a17f9bbfe83070e2a5423e397fd53f..7326201310b600c4e2e82ec02eb61ebd603b30bc 100644 (file)
@@ -135,7 +135,7 @@ kdb5_stash(argc, argv)
     }
 
     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);