winbindd and missing 0x1c role on UNICAST_SUBNET
Kevin Stefanik
kstef at mtppi.org
Wed Oct 9 17:03:01 GMT 2002
> 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));
> }
Works for me. Just out of curiousity, why couldn't you just use the
registered_name parameter handed into the function instead of remaking the
nmbname?
Thanks for the great work,
Kevin
More information about the samba-technical
mailing list