--- security/sssd/Makefile 2020-03-29 20:16:30.327608000 +0200 +++ security/sssd/Makefile 2020-07-15 11:06:24.433586000 +0200 @@ -3,7 +3,7 @@ PORTNAME= sssd PORTVERSION= 1.11.7 -PORTREVISION= 20 +PORTREVISION= 21 CATEGORIES= security MASTER_SITES= https://releases.pagure.org/SSSD/${PORTNAME}/ --- security/sssd/files/patch-src-monitor-monitor.c 1970-01-01 01:00:00.000000000 +0100 +++ security/sssd/files/patch-src-monitor-monitor.c 2020-07-15 11:04:11.724661000 +0200 @@ -0,0 +1,23 @@ +--- src/monitor/monitor.c.orig 2014-09-17 13:01:37 UTC ++++ src/monitor/monitor.c +@@ -2832,6 +2832,20 @@ int main(int argc, const char *argv[]) + ret = server_setup(MONITOR_NAME, flags, monitor->conf_path, &main_ctx); + if (ret != EOK) return 2; + ++ /* Use confd initialized in server_setup. ldb_tdb module (1.4.0) check PID ++ * of process which initialized db for locking purposes. ++ * Failed to unlock db: ../ldb_tdb/ldb_tdb.c:147: ++ * Reusing ldb opened by pid 28889 in process 28893 ++ */ ++ talloc_zfree(monitor->cdb); ++ monitor->cdb = main_ctx->confdb_ctx; ++ ++ ret = confdb_get_domains(monitor->cdb, &monitor->domains); ++ if (ret != EOK) { ++ DEBUG(SSSDBG_FATAL_FAILURE, "No domains configured.\n"); ++ return 4; ++ } ++ + monitor->is_daemon = !opt_interactive; + monitor->parent_pid = main_ctx->parent_pid; + monitor->ev = main_ctx->event_ctx;