[Bug 238465] security/sssd: Update to 1.13.4

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 30 13:13:51 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238465

--- Comment #16 from vrwmiller at gmail.com ---
(In reply to Richard Frewin from comment #15)

Comment #15 guided me to identify security/sssd builds [ from HEAD ] and
functions as desired w/ Samba support given the configuration below, which
upgrades Samba from 4.[678] to 4.10.

This mitigates SSSD build failures w/ SMB=on, but fails to update the port to a
more recent version. The attached patch should be ported to ports -HEAD.

Updates to make.conf:

DEFAULT_VERSIONS=samba=4.10

.if ${.CURDIR:M*/security/sssd}
OPTIONS_FILE_SET+=SMB
.endif

.if ${.CURDIR:M*/net/samba410}
OPTIONS_FILE_UNSET+=AD_DC
SAMBA4_BUNDLED_LDB=no
SAMBA4_BUNDLED_TALLOC=no
SAMBA4_BUNDLED_TEVENT=no
SAMBA4_BUNDLED_TDB=no
.endif

Updates to security/sssd/Makefile:

diff --git a/security/sssd/Makefile b/security/sssd/Makefile
index dddb1f6c2..265d9b818 100644
--- a/security/sssd/Makefile
+++ b/security/sssd/Makefile
@@ -17,7 +17,7 @@ LIB_DEPENDS=  libpopt.so:devel/popt \
                libtalloc.so:devel/talloc \
                libtevent.so:devel/tevent \
                libtdb.so:databases/tdb \
-               libldb.so:databases/ldb14 \
+               libldb.so:databases/ldb15 \
                libcares.so:dns/c-ares \
                libdbus-1.so:devel/dbus \
                libdhash.so:devel/ding-libs \


Updates to security/sssd/files/patch-src__monitor__monitor.c:

--- src/monitor/monitor.c.org   2019-07-14 23:45:13.760141000 +0200
+++ src/monitor/monitor.c       2019-07-14 23:58:50.715935000 +0200
@@ -2832,6 +2832,20 @@
     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;

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list