From: Gilles on
On Thu, 29 Jul 2010 10:31:58 +0200, Gilles <gilles.ganault(a)free.fr>
wrote:
>XP(SP3) seems to take a long time to update its list of shares after
>changing the NetBIOS name used in Samba (eg. going from "LINUX" to
>"UBUNTU").

Apparently, it's not a cache issue but something else.

In smb.conf, after adding "log level = 3", /var/log/samba/log.nmbd
says that Samba adds both (previous NetBIOS name) "LINUX" and (current
name) "UBUNTU":

============
[2010/07/29 10:47:42, 0] nmbd/nmbd.c:854(main)
nmbd version 3.4.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[...]
add_name_to_subnet: Added netbios name UBUNTU<03> with first IP
192.168.0.8 ttl=258293 nb_flags=66 to subnet WINS_SERVER_SUBNET

[2010/07/29 10:47:42, 3]
nmbd/nmbd_namelistdb.c:250(add_name_to_subnet)
add_name_to_subnet: Added netbios name UBUNTU<20> with first IP
192.168.0.8 ttl=258293 nb_flags=66 to subnet WINS_SERVER_SUBNET

[2010/07/29 10:47:42, 3]
nmbd/nmbd_namelistdb.c:250(add_name_to_subnet)
add_name_to_subnet: Added netbios name LINUX<00> with first IP
192.168.0.8 ttl=256220 nb_flags=66 to subnet WINS_SERVER_SUBNET

[2010/07/29 10:47:42, 3]
nmbd/nmbd_namelistdb.c:250(add_name_to_subnet)
add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP
0.0.0.0 ttl=258293 nb_flags=e4 to subnet WINS_SERVER_SUBNET

[2010/07/29 10:47:42, 3]
nmbd/nmbd_namelistdb.c:250(add_name_to_subnet)
add_name_to_subnet: Added netbios name UBUNTU<00> with first IP
192.168.0.8 ttl=258293 nb_flags=66 to subnet WINS_SERVER_SUBNET

[2010/07/29 10:47:42, 3]
nmbd/nmbd_namelistdb.c:250(add_name_to_subnet)
add_name_to_subnet: Added netbios name LINUX<03> with first IP
192.168.0.8 ttl=256220 nb_flags=66 to subnet WINS_SERVER_SUBNET

[2010/07/29 10:47:42, 3]
nmbd/nmbd_namelistdb.c:250(add_name_to_subnet)
add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP
0.0.0.0 ttl=258293 nb_flags=e4 to subnet WINS_SERVER_SUBNET

[2010/07/29 10:47:42, 3]
nmbd/nmbd_namelistdb.c:250(add_name_to_subnet)
add_name_to_subnet: Added netbios name LINUX<20> with first IP
192.168.0.8 ttl=256220 nb_flags=66 to subnet WINS_SERVER_SUBNET
============

Why does it add "LINUX", although it's not mentionned in
/etc/samba/smb.conf?

Here's smb.conf:
============
[global]
workgroup = WORKGROUP
;investigating netbios name = LINUX
netbios name = UBUNTU
server string = Samba Server %v

security = user
guest account = nobody

dns proxy = no
wins support = yes
remote announce = 192.168.0.255

log level = 3
============

Thank you.

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Gilles on
On Thu, 29 Jul 2010 11:02:05 +0200, Gilles <gilles.ganault(a)free.fr>
wrote:
>Apparently, it's not a cache issue but something else.

No matter how long I wait after changing Samba's NetBIOS name and
restarting nmbd/smbd, XP still shows both names:

http://img32.imageshack.us/img32/782/sambanetbiosnamenotupda.jpg

I know it looks like an XP browsing issue, not Samba's fault, but if
someone's already experienced this and knows what to do, I'm all ears.

Thank you.

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba