summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_browsesync.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-05-07 01:00:12 +0000
committerJeremy Allison <jra@samba.org>2003-05-07 01:00:12 +0000
commit5601a2b7ccef98b65b127884432776fd19b0b8e4 (patch)
tree1de87555ce51b69858ea033872a2723a34bc0370 /source3/nmbd/nmbd_browsesync.c
parentf0bf4b1f535020927251ebb4d9c5a473ab6ccaf0 (diff)
downloadsamba-5601a2b7ccef98b65b127884432776fd19b0b8e4.tar.gz
samba-5601a2b7ccef98b65b127884432776fd19b0b8e4.tar.bz2
samba-5601a2b7ccef98b65b127884432776fd19b0b8e4.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 c5b1654c28e33823a58c6447c152996a1eed1d0d)
Diffstat (limited to 'source3/nmbd/nmbd_browsesync.c')
-rw-r--r--source3/nmbd/nmbd_browsesync.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_browsesync.c b/source3/nmbd/nmbd_browsesync.c
index b9082ee1c3..adfefc9f27 100644
--- a/source3/nmbd/nmbd_browsesync.c
+++ b/source3/nmbd/nmbd_browsesync.c
@@ -316,7 +316,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