On Sun, 2013-06-23 at 21:45 +0200, Alberto Flórez Castro wrote: > I have joined a samba 4.0.6 archlinux PC as an additional AD domain > controller to an existing windows 2003 active directory domain using the > official HOWTO as reference. For DNS I used BIND 9.9.3-P1. The samba PC > apparently joined the domain correctly and the database is replicating. But > if I look at the log.samba file I see the following messages: > > [2013/06/23 21:30:44, 0] > ../lib/util/util_runcmd.c:334(samba_runcmd_io_handler) > /usr/bin/samba_dnsupdate: Failed to exec child - No such file or directory > [2013/06/23 21:30:44, 0] > ../lib/util/util_runcmd.c:334(samba_runcmd_io_handler) > /usr/bin/samba_spnupdate: Failed to exec child - No such file or directory > > Also I can confirm that the DNS is not updating. If try to execute manually > the dns update (samba_dnsupdate --verbose --all-names > ) I get: > > -bash: /usr/bin/samba_dnsupdate: /usr/bin/python2#: bad interpreter: No > such file or directory > > Any ideas about how to solve this issue?.
Insert a newline before the # Alternately, the patch for this is attached, which will be in the next 4.0 release. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org
>From 3f24d694e7e2190d30a17bc13a79a36b49711531 Mon Sep 17 00:00:00 2001 From: Michael Adam <ob...@samba.org> Date: Tue, 28 May 2013 12:19:34 +0200 Subject: [PATCH] build: Add missing new line to replaced python shebang line. (Fix bug #9909) When configuring with a non-standard python specified in the PYTHON environment variable, the shebang lines in various python tools like samba-tool and samba_dnsupdate get replaced. This replace line for the shebang was missing a newline which joined the shebang line with the following line, rendereing those scripts with a nonempty second line unusuable, for example samba_dnsupdate. This patch fixes this bug which is bug #9909 on bugzilla. Pair-Programmed-With: Karolin Seeger <ksee...@samba.org> Signed-off-by: Michael Adam <ob...@samba.org> Signed-off-by: Karolin Seeger <ksee...@samba.org> Reviewed-by: Andrew Bartlett <abart...@samba.org> Autobuild-User(master): Michael Adam <ob...@samba.org> Autobuild-Date(master): Wed May 29 13:21:51 CEST 2013 on sn-devel-104 --- buildtools/wafsamba/wafsamba.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 0d407e6..aaa0939 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -704,9 +704,9 @@ sys.path.insert(1, "%s")""" % (task.env["PYTHONARCHDIR"], task.env["PYTHONDIR"]) shebang = None if task.env["PYTHON"][0] == "/": - replacement_shebang = "#!%s" % task.env["PYTHON"] + replacement_shebang = "#!%s\n" % task.env["PYTHON"] else: - replacement_shebang = "#!/usr/bin/env %s" % task.env["PYTHON"] + replacement_shebang = "#!/usr/bin/env %s\n" % task.env["PYTHON"] installed_location=task.outputs[0].bldpath(task.env) source_file = open(task.inputs[0].srcpath(task.env)) -- 1.7.11.7
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba