diff options
author | Jeremy Allison <jra@samba.org> | 2003-05-07 01:00:36 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-05-07 01:00:36 +0000 |
commit | 6b4330235f5aca9d3db9544738e6d1a6d3daac23 (patch) | |
tree | d5215a4f2d2c756d2c4d18eea14e7e13c84407f5 /source3/nmbd | |
parent | f30c35b412768d0f968f57fe1781c04473f2954a (diff) | |
download | samba-6b4330235f5aca9d3db9544738e6d1a6d3daac23.tar.gz samba-6b4330235f5aca9d3db9544738e6d1a6d3daac23.tar.bz2 samba-6b4330235f5aca9d3db9544738e6d1a6d3daac23.zip |
We used to use the name "*",0x0 here, but some Windows
servers don't answer that name. However we *know* they
have the name workgroup#1b (as we just looked it up).
So do the node status request on this name instead.
Found at LBL labs.
Jeremy.
(This used to be commit 41e3abe8b80026812ea7dd7ad535e8e41e26daa4)
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd_browsesync.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_browsesync.c b/source3/nmbd/nmbd_browsesync.c index ca8d269cb0..381f65e0c8 100644 --- a/source3/nmbd/nmbd_browsesync.c +++ b/source3/nmbd/nmbd_browsesync.c @@ -320,7 +320,15 @@ static void find_domain_master_name_query_success(struct subnet_record *subrec, zero_ip(&work->dmb_addr); /* Now initiate the node status request. */ - make_nmb_name(&nmbname,"*",0x0); + + /* We used to use the name "*",0x0 here, but some Windows + * servers don't answer that name. However we *know* they + * have the name workgroup#1b (as we just looked it up). + * So do the node status request on this name instead. + * Found at LBL labs. JRA. + */ + + make_nmb_name(&nmbname,work->work_group,0x1b); /* Put the workgroup name into the userdata so we know what workgroup we're talking to when the reply comes |