Bug 981 - Namelist in nmbd contains expired entries, when acting as a wins server
Summary: Namelist in nmbd contains expired entries, when acting as a wins server
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: nmbd (show other bugs)
Version: 3.0.1
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-16 08:04 UTC by Michael Keller
Modified: 2005-08-24 10:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Keller 2004-01-16 08:04:31 UTC
NMBD runs as a wins server. Doing a nmblookup -R -U winsserver linuxmachine puts 
an entry to the namelist with a ttl=7200 and source=DNS_NAME. This is ok. After 
the time elapsed this entry is still in the namelist, because it isn't deleted 
by the routine 'expire_names' from 'nmbd_namelistdb.c'. It seems that this 
routine is not going through the subnet 'wins_server_subnet' where this entry 
resides.

Here is the relevant part from the log:
[2004/01/14 09:54:08, 9] nmbd/nmbd_namelistdb.c:find_name_on_subnet(124)
  find_name_on_subnet: on subnet WINS_SERVER_SUBNET - found name ECLIPSE<00> 
source=3
[2004/01/14 09:54:08, 3] nmbd/nmbd_winsserver.c:
wins_process_name_query_request(1491)
  wins_process_name_query: name query for name ECLIPSE<00> - name expired. 
Returning fail.
[2004/01/14 09:54:08, 4] nmbd/nmbd_packets.c:reply_netbios_packet(929)
  reply_netbios_packet: sending a reply of packet type: wins_query ECLIPSE<00> 
to ip 172.16.20.248 for id 18136
[2004/01/14 09:54:08, 4] libsmb/nmblib.c:debug_nmb_packet(106)
  nmb packet from 172.16.20.248(32908) header: id=18136 opcode=Query(0) 
response=Yes
      header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
      header: rcode=3 qdcount=0 ancount=1 nscount=0 arcount=0
      answers: nmb_name=ECLIPSE<00> rr_type=32 rr_class=1 ttl=0


Samba is Version: Samba3-3.0.1-0

Thanks for developing samba and thanks for your help

Kind Regards

Michael
Comment 1 Gerald (Jerry) Carter (dead mail address) 2005-02-08 21:48:56 UTC
I think we've fixed this.  Please retest against 3.0.11
Comment 2 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:21:05 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.