As a workaround, if you replace the indicated line in /etc/init.d/samba-ad-dc,
does it work?
--- /etc/init.d/samba-ad-dc.orig 2018-07-20 13:33:22.418002978 +0000
+++ /etc/init.d/samba-ad-dc 2018-07-20 13:33:34.966042631 +0000
@@ -27,7 +27,7 @@
case "$1" in
start)
- SERVER_ROLE=`samba-tool testparm --parameter-name="server role"
2>/dev/null | tail -1`
+ SERVER_ROLE=`testparm -s --parameter-name="server role"
2>/dev/null | tail -1`
if [ "$SERVER_ROLE" != "active directory domain controller" ];
then
exit 0
fi
i.e., replace "samba-tool testparm" with "testparm -s", and then issue
sudo systemctl daemon-reload
But I suspect you added the %U include directive after provisioning the
domain, as the provision tool complains about it if you start off with
such a smb.conf, so this needs a better fix.
** Changed in: samba (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1583324
Title:
Samba won't start when an include statement in smb.conf has a variable
substitution
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1583324/+subscriptions
--
Ubuntu-server-bugs mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs