[Samba] Please help with Samba AD DC after restore from backup

Viktor Trojanovic viktor at troja.ch
Sun May 26 17:17:26 UTC 2019

I just did a restore of a backed up Samba DC and as feared, I'm running
into issues that have kept me for hours on this already.

Everything seems fine at first sight. The daemon (samba-ad-dc, 4.10, on
Ubuntu Bionic) starts properly and without error messages in any log, even
with increased level 3. Most of the typical testing and troubleshooting
commands give the correct output.

Specifically, all the host commands mentioned in the wiki work, so
(internal) DNS seems to work fine. kinit and klist work, too, so I guess
Kerberos is set up correctly. What doesn't seem to work fully, however, is
the file server.

I can run

smbclient -L DC1 -U%

just fine. But when I switch DC1 for localhost, I get an error message.

Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)

I'm not sure if it matters, but no matter if I choose localhost or DC1, it
also says "Unable to initialize messaging context". I couldn't find a clear
reference as to what this means.

What I further noticed is that I cannot seem to access "DC1" from other
stations. I can ping the address, but running "nslookup DC1"
gives an error

** server can't find dc1: SERVFAIL

It seems to me as if most of the DC is working fine but one element is
screwed up. Hopefully someone can guide me in the right direction to solve

workgroup = SAMDOM
netbios name = DC1
server role = active directory domain controller
dns forwarder =
idmap_ldb:use rfc2307 = yes
interfaces = eth0
bind interfaces only = Yes
tls enabled = no
        log level = 3

path = /var/lib/samba/sysvol/samdom.example.com/scripts
read only = No
acl_xattr:ignore system acls = yes

path = /var/lib/samba/sysvol
read only = No
acl_xattr:ignore system acls = yes

/etc/hosts localhost dc1.samdom.example.com dc1


search samdom.example.com

More information about the samba mailing list