The correct group name used by net/isc-bind is "_bind"

Needed for the bind DLZ backend, which works pretty fine.
This commit is contained in:
jca 2015-07-15 21:50:31 +00:00
parent 8df641bf62
commit bf511ab81e
3 changed files with 32 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.18 2015/06/27 22:14:48 jca Exp $
# $OpenBSD: Makefile,v 1.19 2015/07/15 21:50:31 jca Exp $
SHARED_ONLY = Yes
VERSION = 4.1.19
@ -21,6 +21,7 @@ PKGNAME-tevent = tevent-${TEVENT_V}
PKGNAME-util = samba-util-${TALLOC_V}
PKGNAME-docs = samba-docs-${VERSION}
REVISION-main = 0
REVISION-ldb = 0
REVISION-tdb = 0
REVISION-tevent = 0

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-python_samba_provision___init___py,v 1.1 2015/07/15 21:50:31 jca Exp $
- net/isc-bind group name
--- python/samba/provision/__init__.py.orig Wed Jul 15 15:25:50 2015
+++ python/samba/provision/__init__.py Wed Jul 15 15:26:06 2015
@@ -1960,7 +1960,7 @@ def provision(logger, session_info, credentials, smbco
root_gid = pwd.getpwuid(root_uid).pw_gid
try:
- bind_gid = findnss_gid(["bind", "named"])
+ bind_gid = findnss_gid(["_bind"])
except KeyError:
bind_gid = None

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-source4_scripting_bin_samba_upgradedns,v 1.1 2015/07/15 21:50:31 jca Exp $
- net/isc-bind group name
--- source4/scripting/bin/samba_upgradedns.orig Wed Jul 15 15:24:50 2015
+++ source4/scripting/bin/samba_upgradedns Wed Jul 15 15:25:05 2015
@@ -75,7 +75,7 @@ __docformat__ = 'restructuredText'
def find_bind_gid():
"""Find system group id for bind9
"""
- for name in ["bind", "named"]:
+ for name in ["_bind"]:
try:
return grp.getgrnam(name)[2]
except KeyError: