[Samba] wins.dat keeps coming back with bad information

JR Dalrymple jr at jrssite.com
Sat Jun 11 18:18:00 GMT 2005

I recently reconfigured a box running FreeBSD 5.3 with Samba v. 3.0.7
running as PDC. It was servicing 2 networks, processing logons for and The reason for 2 networks was
security, 115.0/24 had some stuff on it that the users on 200.0/24
shouldn't have access to. Before the reconfiguration, the system was
working 100%.

To make everything better I flattened the network and put in an OpenBSD
box pf-ing to deal with the security matter.

The problem is now that none of the machines can resolve the PDC through
WINS. The PDC itself is the WINS master browser. They can process logons
OK, but I can't join machines, and the users can't change their passwords.

Here's the relevant (I think) code:

genie# ifconfig
        inet netmask 0xffffff00 broadcast
        inet6 fe80::2a0:c9ff:fe89:ca86%fxp0 prefixlen 64 scopeid 0x1
        ether 00:a0:c9:89:ca:86
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ether 00:04:75:ad:a2:a4
        media: Ethernet autoselect (none)
        status: no carrier
xl1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ether 00:10:4b:69:75:6d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
genie# tail /var/log/samba/log.nmbd
[2005/06/11 10:01:01, 0]
  become_domain_master_browser_wins: querying WINS server from IP for domain master browser name DOMAINNAME<1b> on workgroup
[2005/06/11 10:01:02, 0]
  There is already a domain master browser at IP for
workgroup DOMAINNAME registered on subnet UNICAST_SUBNET.
[2005/06/11 10:01:59, 0]
  Doing a node status request to the domain master browser
  for workgroup DOMAINNAME at IP failed.
  Cannot sync browser lists.
genie# cat /var/db/samba/wins.dat
"DOMAINNAME#00" 1118772367 e4R
"DOMAINNAME#1b" 1118766468 64R
"DOMAINNAME#1c" 1118771156 e4R
"DOMAINNAME#1e" 1118771156 e4R
"GENIE#00" 1118771156 66R
"GENIE#03" 1118771156 66R
"GENIE#20" 1118771156 66R

As you can see the wins.dat is full of garbage. where does it get that
garbage from? One of the garbage addresses is the address that it had when
I was building it, the other 2 are from when it was servicing the 2
networks. If I manually edit it, it just clobbers it when I restart nmbd.

What do I need to do to clean this up? Am I going to have to build a 2nd
server just for WINS resolution?

jr at jrssite.com

More information about the samba mailing list