git: d1e6825867dd - main - net/py-lib389: pass the process environment when starting dirsrv

Jochen Neumeister <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d1e6825867ddd65734df44255115c2e31961d85c

commit d1e6825867ddd65734df44255115c2e31961d85c
Author:     Jochen Neumeister <[email protected]>
AuthorDate: 2026-08-13 07:25:16 +0000
Commit:     Jochen Neumeister <[email protected]>
CommitDate: 2026-08-13 08:58:48 +0000

    net/py-lib389: pass the process environment when starting dirsrv
    
    Extend the FreeBSD start patch so lib389 launches the ns-slapd process
    with a copy of the current environment (env = dict(os.environ)) instead
    of an empty one. This lets the Kerberos settings (e.g. KRB5_KTNAME) reach
    the directory server process, which is required for GSSAPI/GSS-SPNEGO binds
    on FreeBSD.
    
    Sponsored by:   Netzkommune GmbH
---
 net/py-lib389/Makefile                           | 2 +-
 net/py-lib389/files/patch-lib389_____init____.py | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/net/py-lib389/Makefile b/net/py-lib389/Makefile
index 00bd83106661..9b7cd114ae8e 100644
--- a/net/py-lib389/Makefile
+++ b/net/py-lib389/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	lib389
 DISTVERSION=	3.2.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net python
 MASTER_SITES=	https://github.com/389ds/389-ds-base/releases/download/389-ds-base-${DISTVERSION}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/net/py-lib389/files/patch-lib389_____init____.py b/net/py-lib389/files/patch-lib389_____init____.py
index 5412b1b5490d..b2050c9517fa 100644
--- a/net/py-lib389/files/patch-lib389_____init____.py
+++ b/net/py-lib389/files/patch-lib389_____init____.py
@@ -1,6 +1,6 @@
---- lib389/__init__.py.orig	2026-06-29 17:03:20 UTC
+--- lib389/__init__.py.orig	2026-04-30 12:45:04 UTC
 +++ lib389/__init__.py
-@@ -1158,6 +1158,14 @@ class DirSrv(SimpleLDAPObject, object):
+@@ -1158,10 +1158,18 @@ class DirSrv(SimpleLDAPObject, object):
                  raise e from None
          else:
              self.log.debug("systemd status -> False")
@@ -15,3 +15,8 @@
              # Start the process.
              # Wait for it to terminate
              # This means the server is probably ready to go ....
+-            env = {}
++            env = dict(os.environ)
+             if self.has_asan():
+                 self.log.warning("WARNING: Starting instance with ASAN options. This is probably not what you want. Please contact support.")
+                 env.update(os.environ)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.