winbindd and missing 0x1c role on UNICAST_SUBNET

Kevin Stefanik kstef at mtppi.org
Tue Oct 8 13:58:00 GMT 2002


That's a much cleaner solution than what I was proposing.  Thanks.

I do have one question, though.  If a samba PDC has multiple interfaces, would 
you want the PDC role registered with the PDC's ip on each interface?  I 
think that would be accomplished if your insert_permanent_name_into_unicast 
were moved inside the subnet list loop, and called for each subnet instead of 
FIRST_SUBNET.   Or maybe I don't understand how the unicast subnet works?  

Thanks,
Kevin

On Tuesday 08 October 2002 03:39 am, 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 :-)
>
> 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);
>  }




More information about the samba-technical mailing list