Bug 12452 - Samba fails to replicate static WINS records
Summary: Samba fails to replicate static WINS records
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.5.1
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-28 12:34 UTC by Luciano Mendonca
Modified: 2016-11-28 12:36 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luciano Mendonca 2016-11-28 12:34:10 UTC
Overview: Samba fails to replicate static WINS entries created in an Windows Server 2008 R2 partner. Dynamic records are ok.

Steps to reproduce:

- Setup Samba with minimal configuration to allow WINS replication:

smb.conf
[global]
wins support = yes
server services = wrepl nbt smb
dcerpc endpoint servers = remote

- Add Windows as a replication partner:

# ldbedit -H /var/lib/samba/private/wins_config.ldb -a

dn: CN=WINDOWS,CN=PARTNERS
address: 192.168.8.3
objectClass: wreplPartner
pullInterval: 1800
pullRetryInterval: 30
pushChangeCount: 0
pushUseInform: 1
type: 0x3
distinguishedName: CN=WINDOWS,CN=PARTNERS

- Run Samba as an interactive process (debug mode 10)
# samba -i -M single -d10

- Create a static entry in Windows

- Force replication if needed

Actual results:
No sign of the static record on Samba side.

# nmblookup -U 127.0.0.1 -R 'ORION#20'
querying ORION on 127.0.0.1
name_query failed to find name ORION#20

The log shows:

ldb: ldb_trace_request: (wins_ldb)->add
ldb: ldb_trace_next_request: (tdb)->add
ldb: ldb_asprintf/set_errstring: attribute 'expireTime' on 'name=ORION,type=0x00' specified, but with 0 values (illegal)
ldb: cancel ldb transaction (nesting: 1)
ldb: cancel ldb transaction (nesting: 0)
ldb: ldb_trace_request: (tdb)->del_transaction
Failed to add record ORION<00>: 2
wreplsrv_pull_cycle(192.168.8.3): NT_STATUS_UNSUCCESSFUL: error_count: 4: reschedule(120)

Expected results:
Samba should be able to receive the static WINS records from the partner.