Fix HDB two-phase commit for LDAP backend

We can't replay log entries when recovering if the backend is shared by
writers with separate logs (or no logs at all), i.e., on other hosts.
This commit is contained in:
Nicolas Williams
2016-02-28 17:51:15 -06:00
parent d5bc673e31
commit a114690bde
3 changed files with 8 additions and 2 deletions

View File

@@ -2002,7 +2002,7 @@ hdb_ldap_common(krb5_context context,
(*db)->hdb_master_key_set = 0;
(*db)->hdb_openp = 0;
(*db)->hdb_capability_flags = 0;
(*db)->hdb_capability_flags = HDB_CAP_F_SHARED_DIRECTORY;
(*db)->hdb_open = LDAP_open;
(*db)->hdb_close = LDAP_close;
(*db)->hdb_fetch_kvno = LDAP_fetch_kvno;