diff options
author | Jeremy Allison <jra@samba.org> | 2002-10-08 18:26:12 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-10-08 18:26:12 +0000 |
commit | 641dd258adb2a3d265b89b2726d93fac3942e36a (patch) | |
tree | 5f1166b38a6e7967d6ce43849567b691a4c64194 | |
parent | 06b5917af4a21f6026fea647f005cdb9b4db8123 (diff) | |
download | samba-641dd258adb2a3d265b89b2726d93fac3942e36a.tar.gz samba-641dd258adb2a3d265b89b2726d93fac3942e36a.tar.bz2 samba-641dd258adb2a3d265b89b2726d93fac3942e36a.zip |
Ensure we register the 1c name on the unicast subnet.
Jeremy.
(This used to be commit e1ea20d2d14b9671503eeeccddc7683cc94371c0)
-rw-r--r-- | source3/nmbd/nmbd_logonnames.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_logonnames.c b/source3/nmbd/nmbd_logonnames.c index 1406515d6b..28e0e8a02b 100644 --- a/source3/nmbd/nmbd_logonnames.c +++ b/source3/nmbd/nmbd_logonnames.c @@ -109,6 +109,16 @@ in workgroup %s on subnet %s\n", /* 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)); } |