List many workgroups/domains

rmillet <[email protected]>
Newsgroups gmane.network.samba.java
Message-ID <CAGM43O1CbEDML+_AZh2vSMF5e1bf8bHyBo124yigW5OOXVoNkw@mail.gmail.com>
Hi,

I have some issue when I want to list all domains and workgroups on my
network:

- I have one domain controller (Windows 2008) and one workstation (Windows
XP) on the domain MYDOMAIN.
- I boot a debian on the workgroup MYWORKGROUP,
and then (a few minutes after debian is up) I do:

new SmbFile("smb://").listfiles();

which only returns MYWORKGROUP.

tcpdump shows that both debian and windows XP answer to the MSBROWSE query,
but only debian is asked for known domains.

Both workgroup and domain are returned when I wait several minutes after
debian is up.

Is there a way to force listfiles to ask all master browser servers,
because I can't rely on the "stability" of my network (many workgroups,
many computers often connected/disconnected) ?

Thanks,




PS: by the way, JCIFS it's a great library.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.