winbindd and missing 0x1c role on UNICAST_SUBNET

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Oct 8 07:41:12 GMT 2002


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 :-)

Volker

diff -u -r1.11 nmbd_logonnames.c
--- nmbd/nmbd_logonnames.c      30 Jan 2002 06:08:22 -0000      1.11
+++ nmbd/nmbd_logonnames.c      6 Oct 2002 09:58:09 -0000
@@ -139,6 +139,7 @@
 void add_logon_names(void)
 {
   struct subnet_record *subrec;
+  struct nmb_name nmbname;
 
   for (subrec = FIRST_SUBNET; subrec; subrec = NEXT_SUBNET_INCLUDING_UNICAST(subrec))
   {
@@ -146,7 +147,6 @@
 
     if (work && (work->log_state == LOGON_NONE))
     {
-      struct nmb_name nmbname;
       make_nmb_name(&nmbname,global_myworkgroup,0x1c);
 
       if (find_name_on_subnet(subrec, &nmbname, FIND_SELF_NAME) == NULL)
@@ -162,4 +162,6 @@
       }
     }
   }
+  make_nmb_name(&nmbname,global_myworkgroup,0x1c);
+  insert_permanent_name_into_unicast(FIRST_SUBNET, &nmbname, 0x1c);
 }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20021008/1a33dc1b/attachment.bin


More information about the samba-technical mailing list