Comment 3 for bug 1583324

Mike E. (melkevizth) wrote :

With the latest version (4.3.11+dfsg-0ubuntu0.16.04.13) I still get failures when I try to startup samba with an include that contains %U.

I think the difference is that I'm using samba as an AD DC. So the service is started with systemctl (re)start samba-ad-dc instead of the smbd and nmbd services.

The watered down smb.conf is:

    workgroup = WORKGROUP
    realm = AD.WORKGROUP.COM
    netbios name = SERVER1
    server role = active directory domain controller
    server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
    idmap_ldb:use rfc2307 = yes
    include = /etc/samba/smb.conf.%U

    path = /var/lib/samba/sysvol/
    read only = No

    path = /var/lib/samba/sysvol
    read only = No

Samba will refuse to start with the above smb.conf unless the include line is removed or changed to a static file.