Web lists-archives.com

Re: [Samba] After upgrade to 4.9.4, internal DNS no longer working




On Wed, 26 Dec 2018 at 15:04, Rowland Penny via samba <samba@xxxxxxxxxxxxxxx>
wrote:

> On Wed, 26 Dec 2018 14:40:10 +0100
> Viktor Trojanovic <viktor@xxxxxxxx> wrote:
>
> > Hi Rowland,
> >
> > Thanks for taking an interest.
> >
> > On Wed, 26 Dec 2018 at 14:27, Rowland Penny via samba
> > <samba@xxxxxxxxxxxxxxx> wrote:
> >
> > > On Wed, 26 Dec 2018 11:43:37 +0100
> > > Viktor Trojanovic <viktor@xxxxxxxx> wrote:
> > >
> > > > I could really use some support with this. I understand it's
> > > > always possible to just restore from a backup but the more
> > > > interesting question is if something can be done with the data at
> > > > hand. Basically, I'm trying to understand how it's possible that
> > > > a dbcheck shows no errors, an ldbsearch is successful, and yet
> > > > it's not possible to start the AD properly. What else is there
> > > > that could be corrupted, and is there a way to repair it?
> > > >
> > >
> > > OK, I have been reviewing all the posts in this thread and I have a
> > > few questions ;-)
> > >
> > > You posted that you are running the DC using the internal DNS
> > > server, but you also posted this:
> > >
> > > All checks on the flat files work fine
> > >
> > > What 'flat files' ?
> > > Are you referring to Bind9 flat files ?
> > >
> > >
> > No. I meant the *.tdb and *.ldb files in the samba directory. I'm
> > using the internal DNS server, I don't have Bind installed, never had.
>
> Good, 'flat files' usually refers to the Bind9 zones conf files.
>
> >
> >
> > > There is also this:
> > >
> > > kdc_task_init: Cannot determine if we are an RODC: operations error
> > > at ../source4/dsdb/common/util.c:3534
> > > task_server_terminate: task_server_terminate: [kdc:
> > > krb5_init_context samdb RODC connect failed]
> > >
> > > Why is 'RODC' getting mentioned ?
> > >
> > >
> > I don't even know what RODC is. :) This is a regular AD DC install as
> > it is described on the Wiki, I didn't do anything exotic there.
>
> A normal DC is an RWDC (Read Write Domain Controller), an RODC is a
> 'Read Only Domain Controller'
>
> For some reason, Your Samba is getting confused
>
>
I wouldn't know why, I didn't make any changes in this respect.


> >
> >
> > > Can you post the contents of:
> > >
> > > /etc/hostname
> > >
> >
> > DC1
> >
> >
> > > /etc/nsswitch.conf
> > >
> > >
> > passwd: files winbind mymachines systemd
> > group: files winbind mymachines systemd
> > shadow: files
> >
> > publickey: files
> >
> > hosts: files mymachines myhostname resolve [!UNAVAIL=return] dns
>
> Try the above line like this:
>
> hosts: files dns
>
> > networks: files
> >
> > protocols: files
> > services: files
> > ethers: files
> > rpc: files
> >
> > netgroup: files
> >
> >
> > Could the separate Samba daemons (smbd, nmbd, winbind) be being
> > started
> > > instead of/as well as the 'samba' daemon ?
> > >
> > >
> > No, it's really just the "Samba AD Daemon" (samba.service). smbd
> > (smb.service), nmbd (nmb.service), as well as winbindd
> > (winbind.service) are not started. As you could see from the log, the
> > binaries such as smbd and winbindd are indeed started but I guess
> > that is done by Samba automatically?
>
> Yes, the 'samba' daemon does start smbd & winbind, but it was just a
> thought.
>
> Check if systemd is starting any other dns server (resolved ?)
>

Yes, it is starting resolved but that was always the case. Resolved reads
from the network file and adds the correct nameserver (itself) and search
string (samdom.example.com).

Just to rule out resolved as the culprit, I now disabled resolved entirely
and created a static resolv.conf file, then rebooted the server.

After doing all of this, this is the Samba log:

[2018/12/26 16:28:57.872726,  0]
../source4/smbd/server.c:510(binary_smbd_main)
  samba version 4.9.4 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2018
[2018/12/26 16:28:58.179432,  0]
../source4/smbd/server.c:696(binary_smbd_main)
  binary_smbd_main: samba: using 'standard' process model
[2018/12/26 16:28:58.192497,  0]
../source4/dsdb/common/util.c:1815(samdb_reference_dn_is_our_ntdsa)
  Failed to find object DC=samdom,DC=example,DC=com for attribute
fsmoRoleOwner - Cannot find DN DC=samdom,DC=example,DC=com to get attribute
fsmoRoleOwner for reference dn: No such Base DN: DC=samdom,DC=example,DC=com
[2018/12/26 16:28:58.208645,  0]
../source4/smbd/service_task.c:36(task_server_terminate)
[2018/12/26 16:28:58.211103,  0]
../source4/smbd/service_task.c:36(task_server_terminate)
  task_server_terminate: task_server_terminate: [kdc: krb5_init_context
samdb RODC connect failed]
  task_server_terminate: task_server_terminate: [dreplsrv: Failed to
connect to local samdb: WERR_DS_UNAVAILABLE
  ]
[2018/12/26 16:28:58.235875,  0]
../source4/smbd/service_task.c:36(task_server_terminate)
[2018/12/26 16:28:58.241918,  0]
../source4/dsdb/dns/dns_update.c:127(dnsupdate_rebuild)
  task_server_terminate: task_server_terminate: [kccsrv: Failed to connect
to local samdb: WERR_DS_UNAVAILABLE
  ]
[2018/12/26 16:28:58.274730,  0]
../source4/smbd/service_task.c:36(task_server_terminate)
  task_server_terminate: task_server_terminate: [dns: failed to load DNS
zones]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba