[Pkg-samba-maint] Bug#426700: samba: Samba incorrectly remembers defunct IP addresses when running as a WINS server

Tim Small tim at buttersideup.com
Wed May 30 10:50:22 UTC 2007


Package: samba
Version: 3.0.24-6etch2
Severity: normal


When a samba server is running as a wins server, the wins server
remembers IP addresses of the server, which have since been deleted.

Restarting samba, and using "net cache flush" does not cure the problem.
Clients intermittently recieve stale data, and fail to contact the
server.

To reproduce:

1. Create a samba server with multiple IP addresses on a local subnet
.e.g.

192.168.0.1, 192.168.1.1

2. Start samba server with 'wins support = yes'

3. net lookup <server-name>

4. net cache list

 - both IP addresses should be listed

5. /etc/init.d/samba stop

6. ip addr del 192.168.1.1/24 dev eth0

7. /etc/init.d/samba start

8. net lookup <server-name>

9. net cache list

 - both IP addresses are still listed (Incorrectly)


Deleting or editing /var/lib/samba/wins.dat (and possibly deleting
/var/run/samba/wins.tdb) with the samba server stopped works around the
problem.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.21-rc4
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages samba depends on:
ii  debconf  1.5.11                          Debian configuration management sy
ii  libacl1  2.2.41-1                        Access control list shared library
ii  libattr1 2.4.32-1                        Extended attribute shared library
ii  libc6    2.3.6.ds1-13                    GNU C Library: Shared libraries
ii  libcomer 1.39+1.40-WIP-2006.11.14+dfsg-2 common error description library
ii  libcupsy 1.2.7-4                         Common UNIX Printing System(tm) - 
ii  libgnutl 1.4.4-3                         the GNU TLS library - runtime libr
ii  libkrb53 1.4.4-7etch1                    MIT Kerberos runtime libraries
ii  libldap2 2.1.30-13.3                     OpenLDAP libraries
ii  libpam-m 0.79-4                          Pluggable Authentication Modules f
ii  libpam-r 0.79-4                          Runtime support for the PAM librar
ii  libpam0g 0.79-4                          Pluggable Authentication Modules l
ii  libpopt0 1.10-3                          lib for parsing cmdline parameters
ii  logrotat 3.7.1-3                         Log rotation utility
ii  lsb-base 3.1-23.1                        Linux Standard Base 3.1 init scrip
ii  netbase  4.29                            Basic TCP/IP networking system
ii  procps   1:3.2.7-3                       /proc file system utilities
ii  samba-co 3.0.24-6etch2                   Samba common files used by both th
ii  zlib1g   1:1.2.3-13                      compression library - runtime

Versions of packages samba recommends:
pn  smbldap-tools                 <none>     (no description available)

-- debconf information:
  samba/tdbsam: false
  samba/generate_smbpasswd: true
  samba/run_mode: daemons




More information about the Pkg-samba-maint mailing list