[jcifs] WINS setting being ignored

Christopher R. Hertel crh at ubiqx.mn.org
Fri Jun 18 02:30:23 GMT 2004


On Thu, Jun 17, 2004 at 10:02:04PM -0400, Michael B Allen wrote:
> Michael Kerley said:
> >> Yes. User error :)
> >
> > I *think* I'm doing it right, but maybe you can see something I did wrong.
> 
> Ahh, yes. This is a broadcast query but it's for the MSBROWSE name -- the
> master browser which is necessary to retrieve the list of workgroups when
> you use the "smb://" URL. The ONLY way to lookup the master browser is
> with this special type of broadcast query on a NetBIOS over TCP network.

Right.  If you don't have a workgroup name, there's no way to find *any*
master browser unless you broadcast for it.

...well...  Samba offers a non-standard enhancement that can be leveraged 
in this case.  If you don't find any MSBROWSE nodes using the broadcast, 
you can *try* sending a query for *<1B> to the NBNS.  If the NBNS is a 
Samba server it will return a list of all known DMBs.

> WINS does not maintain this information. On non-NetBIOS networks the
> workgroup list is retrived by RPC or LDAP I'm not sure how exactly but
> jCIFS doesn't support either method (yet).

I *think* that this may be done via the non-standard UDP-based LDAP-like
protocol that Microsoft has put together.  Anthony Liguori is the only 
person I know who has studied that protocol.

Chris -)-----

> > Jun 18 05:37:20.417 - nbt name service packet sent
> > Exception in thread "main" jcifs.smb.SmbException: Unknown host:
> > ..__MSBROWSE__.<01>
> >          at jcifs.smb.SmbFile.connect0(SmbFile.java:552)
> >          at jcifs.smb.SmbFile.list(SmbFile.java:1149)
> >          at List.main(List.java:24)
> 
> Mike

-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org


More information about the jcifs mailing list