James B. Byrne
2024-Feb-16 13:47 UTC
[Samba] Samba trying to connect to a non-existant DC for NTP?
On Fri, February 16, 2024 05:17, Rowland Penny rpenny at samba.org wrote:> > On Thu, 15 Feb 2024 17:07:11 -0500 > "James B. Byrne via samba" <samba at lists.samba.org> wrote: > >> I found these: >> >> samba-ldbsearch --cross-ncs --show-binary -H >> /var/db/samba4/private/sam.ldb -b 'DC=brockley,DC=harte-lyne,DC=ca' | >> grep smb4-1 mname : smb4-1.brockley.harte-lyne.ca >> ns : smb4-1.brockley.harte-lyne.ca >> ns : smb4-1.brockley.harte-lyne.ca >> dn: >> DC=smb4-1,DC=brockley.harte-lyne.ca,CN=MicrosoftDNS,DC=DomainDnsZones,DC=brockley,DC=harte-lyne,DC=ca >> name: smb4-1 >> dc: smb4-1 >> distinguishedName: >> DC=smb4-1,DC=brockley.harte-lyne.ca,CN=MicrosoftDNS,DC=DomainDnsZones,DC=brockley,DC=harte-lyne,DC=ca > > The first one is simple and straight forward, you can remove it with > 'samba-tool dns delete', where the usage is: > > samba-tool dns delete <server> <zone> <name> <A|AAAA|PTR|CNAME|NS|MX|SRV|TXT> > <data> > > If running on a Samba DC <server> can be 127.0.0.1 or localhost or the > DCs hostname The <zone> and <name> can be found from the 'dn:', the > <name> is the first part 'DC=smb4-1' without the 'DC=' and the <zone> > is the second part 'DC=brockley.harte-lyne.ca', again without the > 'DC='. The record type will be 'A' The <data> for an 'A' record is an > 'ipv4_address_string', probably '192.168.18.161' from what have posted > earlier, but please check. > > Which will give the command: > > samba-tool dns delete 127.0.0.1 brockley.harte-lyne.ca smb4-1 A 192.168.18.161 > -UadministratorThank you. Removing this record alone caused the logging of error messages to stop.> > The next can also be removed with samba-tool: > > samba-tool spn delete <name> > Where <name> will be the part after 'servicePrincipalName: ' > You will also probably have to add '-U administrator' at the end of the > command. >These I will process in the immediate future. But the main issue is resolved. Many thanks, -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Unencrypted messages have no legal claim to privacy Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3