[Samba] Samba trying to connect to a non-existant DC for NTP?

Rowland Penny rpenny at samba.org
Wed Feb 14 22:02:48 UTC 2024


On Wed, 14 Feb 2024 16:48:01 -0500
"James B. Byrne via samba" <samba at lists.samba.org> wrote:

> On Wed Feb 14 21:18:09 UTC 2024 Rowland Penny rpenny at samba.org wrote:
> 
> > What does this produce:
> 
> samba-ldbsearch --cross-ncs --show-binary -H
> /var/db/samba4/private/sam.ldb -b 'DC=brockley,DC=harte-lyne,DC=ca'
> -s sub '(&(objectclass=dnsnode)(name=_ldap._tcp.pdc))'
> 
> # record 1
> dn:
> DC=_ldap._tcp.pdc,DC=_msdcs.brockley.harte-lyne.ca,CN=MicrosoftDNS,DC=ForestDnsZones,DC=brockley,DC=harte-lyne,DC=ca
> objectClass: top
> objectClass: dnsNode
> instanceType: 4
> whenCreated: 20200626203452.0Z
> uSNCreated: 5218
> showInAdvancedViewOnly: TRUE
> name: _ldap._tcp.pdc
> objectGUID: 7ae43ab4-454b-4aae-b411-f151c32a9078
> objectCategory:
> CN=Dns-Node,CN=Schema,CN=Configuration,DC=brockley,DC=harte-lyne,DC=ca
> dc: _ldap._tcp.pdc
> dnsRecord:     NDR: struct dnsp_DnssrvRpcRecord
>         wDataLength              : 0x0027 (39)
>         wType                    : DNS_TYPE_SRV (33)
>         version                  : 0x05 (5)
>         rank                     : DNS_RANK_ZONE (240)
>         flags                    : 0x0000 (0)
>         dwSerial                 : 0x0000006e (110)
>         dwTtlSeconds             : 0x00000384 (900)
>         dwReserved               : 0x00000000 (0)
>         dwTimeStamp              : 0x00000000 (0)
>         data                     : union dnsRecordData(case 33)
>         srv: struct dnsp_srv
>             wPriority                : 0x0000 (0)
>             wWeight                  : 0x0064 (100)
>             wPort                    : 0x0185 (389)
>             nameTarget               : SMB4-1.brockley.harte-lyne.ca
> 
> dnsRecord:     NDR: struct dnsp_DnssrvRpcRecord
>         wDataLength              : 0x0027 (39)
>         wType                    : DNS_TYPE_SRV (33)
>         version                  : 0x05 (5)
>         rank                     : DNS_RANK_ZONE (240)
>         flags                    : 0x0000 (0)
>         dwSerial                 : 0x0000006e (110)
>         dwTtlSeconds             : 0x00000384 (900)
>         dwReserved               : 0x00000000 (0)
>         dwTimeStamp              : 0x00000000 (0)
>         data                     : union dnsRecordData(case 33)
>         srv: struct dnsp_srv
>             wPriority                : 0x0000 (0)
>             wWeight                  : 0x0064 (100)
>             wPort                    : 0x0185 (389)
>             nameTarget               : smb4-2.brockley.harte-lyne.ca
> 

That is what I expected, you have two SRV records for the PDC_Emulator
FSMO role. As there should only be one, you need to remove the incorrect
one.

Rowland



More information about the samba mailing list