summaryrefslogtreecommitdiffstats
path: root/src/kadmin
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-11-12 22:08:05 -0500
committerGreg Hudson <ghudson@mit.edu>2012-11-12 22:08:05 -0500
commit2df36dd4a52c2b08fbacf1648dc76e8e313ce1b5 (patch)
tree68c98e29e8fc64f38eb94d662c2b4df2f2f1df9a /src/kadmin
parentd8ce486d746bc2745a71a8469033f55c9533e575 (diff)
downloadkrb5-2df36dd4a52c2b08fbacf1648dc76e8e313ce1b5.tar.gz
krb5-2df36dd4a52c2b08fbacf1648dc76e8e313ce1b5.tar.xz
krb5-2df36dd4a52c2b08fbacf1648dc76e8e313ce1b5.zip
Make kdb5_util dump work with LDAP again
The LDAP module doesn't support locking. There's code to ignore this in load but not in dump. dump used to only lock for iprop dumps, but now locks all the time after e65a16d898f3a686525e83661f4fd86c76e27bbf (#7384), causing it to fail with LDAP. ticket: 7445 (new) target_version: 1.11 tags: pullup
Diffstat (limited to 'src/kadmin')
-rw-r--r--src/kadmin/dbutil/dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c
index b15e116f37..cbd2d477a4 100644
--- a/src/kadmin/dbutil/dump.c
+++ b/src/kadmin/dbutil/dump.c
@@ -1480,7 +1480,8 @@ dump_db(argc, argv)
* We grab the lock twice (once again in the iterator call),
* but that's ok since the lock func handles incr locks held.
*/
- if (krb5_db_lock(util_context, KRB5_LOCKMODE_SHARED)) {
+ kret = krb5_db_lock(util_context, KRB5_LOCKMODE_SHARED);
+ if (kret != 0 && kret != KRB5_PLUGIN_OP_NOTSUPP) {
fprintf(stderr,
_("%s: Couldn't grab lock\n"), progname);
goto error;