[Samba] problem with nmbd renewing WINS registration

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Thu Mar 28 08:56:31 GMT 2002


Hi Jerry,
Here's the fix, as  I remember it - Jeremy applied this some time ago, and
it DOES still appear to be in the current CVS for 2.2.x...
don

Index: nmbd/nmbd_nameregister.c
===================================================================
RCS file: /data/cvs/samba/source/nmbd/nmbd_nameregister.c,v
retrieving revision 1.12.4.1
diff -u -r1.12.4.1 nmbd_nameregister.c
--- nmbd/nmbd_nameregister.c    30 Jul 2001 17:52:24 -0000  1.12.4.1
+++ nmbd/nmbd_nameregister.c    8 Oct 2001 19:37:09 -0000
@@ -211,6 +211,7 @@
       if(rrec->repeat_interval > (5 * 60))
         rrec->repeat_interval = (5 * 60);
       rrec->repeat_time = time(NULL) + rrec->repeat_interval;
+      rrec->in_expiration_processing = False;
 
       DEBUG(5,("register_name_timeout_response: increasing WINS 
timeout to %d seconds.\n",
               (int)rrec->repeat_interval));


-----Original Message-----
From: Gerald Carter [mailto:jerry at samba.org]
Sent: Thursday, March 28, 2002 8:41 AM
To: Jason Barker
Cc: samba at lists.samba.org; jra at samba.org
Subject: Re: [Samba] problem with nmbd renewing WINS registration


On Wed, 27 Mar 2002, Jason Barker wrote:

> Well, a couple of weeks later, it did happen again. After doing some
poking
> around, the server's entry in DNS was OK, but it was no longer registered
in
> the WINS. I ran some searches on the mailing list, and there are quite a
few
> people who have reported the same problem in the past. It would seem the
> nmbd is not renewing it's WINS registration before/after the release
> timeout. This time, instead of restarting the entire server, I just
> restarted the nmbd daemon, and poof, it registered itself with the WINS.
> Now I know what to do to take care of the problem next time, but it is not
a
> very nice solution. I was wondering if there has been any work done to fix
> this problem (perhaps in HEAD?). If someone has tried to track it down
> before, and was unsucessful, would it be possible to at least include
> something the next release so that I can give nmbd a kick in the butt, and
> tell it "Hey! Renew yourself in the WINS, now!"?

Hmmm....I thought we already fixed this before the 2.2.3 release.
I'll look into it.  You're sure that the binaries you are using 
are 2.2.3a right?  Are you using a Samba WINS server or an NT 
WINS server?








cheers, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--


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




More information about the samba mailing list