winbindd and missing 0x1c role on UNICAST_SUBNET

jra at dp.samba.org jra at dp.samba.org
Tue Oct 8 18:13:00 GMT 2002


On Tue, Oct 08, 2002 at 09:39:29AM +0200, Volker Lendecke wrote:
> On Mon, Oct 07, 2002 at 05:35:35PM -0400, Kevin Stefanik wrote:
> > from log.nmbd:
> > process_node_status_request: status request for name U_MTPPI<1c> from IP 
> > 192.168.92.56 on subnet UNICAST_SUBNET.
> 
> I had the same problem, and patched nmbd a bit. I'm not sure it's
> the right fix, but here it is. Whoever is currently feeling authoritative
> of nmbd, feel free to commit it :-)

This is a very close fix - thanks. I think the correct fix may be below.
The difference between yours and this is that my fix only adds the name
into the unicast subnet once we've successfully claimed the 0x1c name,
and also adds the IP address of every interface we've claimed the name
on to the unicast subnet name record. This will allow us to respond with
all our interfaces, not just the primary one.

Please check this out - thanks !

Jeremy.

Index: nmbd/nmbd_logonnames.c
===================================================================
RCS file: /data/cvs/samba/source/nmbd/nmbd_logonnames.c,v
retrieving revision 1.11
diff -u -r1.11 nmbd_logonnames.c
--- nmbd/nmbd_logonnames.c      30 Jan 2002 06:08:22 -0000      1.11
+++ nmbd/nmbd_logonnames.c      8 Oct 2002 18:09:54 -0000
@@ -109,6 +109,16 @@
   /* Tell the namelist writer to write out a change. */
   subrec->work_changed = True;

+  /*
+   * Add the WORKGROUP<1C> name to the UNICAST subnet with the IP address
+   * for this subnet so we will respond to queries on this name.
+   */
+  {
+         struct nmb_name nmbname;
+         make_nmb_name(&nmbname,global_myworkgroup,0x1c);
+         insert_permanent_name_into_unicast(subrec, &nmbname, 0x1c);
+  }
+
   DEBUG(0,("become_logon_server_success: Samba is now a logon server \
 for workgroup %s on subnet %s\n", work->work_group, subrec->subnet_name));
 }




More information about the samba-technical mailing list