[jcifs] Problems with Wins Resolution

Michael B. Allen miallen at eskimo.com
Thu Sep 26 16:38:18 EST 2002


On Wed, 25 Sep 2002 22:00:03 -0500
"Christopher R. Hertel" <crh at ubiqx.mn.org> wrote:

> On Tue, Sep 24, 2002 at 03:22:47PM -0400, Michael B. Allen wrote:
> :
> > > You might be able to solve the problem by setting the
> > > jcifs.smb.client.domain property to point to a PDC (any PDC) in your
> > > network.
> > 
> > jcifs.smb.client.domain is only used for authentication but this brings
> > up a good point. We could have a jcifs.netbios.workgroup parameter to
> > use with the 0x1d query. I don't think we do that now. It might work
> > with jcifs.smb.client.domain but I don't recall.
> 
> My thought was that it could also be used to do a <1B> query.  The DMB 
> will also have the list of workgroups available, so if you don't have an 
> LMB on the local subnet at all, but you have a default workgroup and an 
> NBNS, you might still have a chance of getting "SMB://" to work.
> 
> > > Mike: correct me if I'm wrong, but by setting this property I *think* that
> > >       jCIFS will be able to contact the DMB for the given NT-Domain.  If
> > >       my guess is right (remembering some now-ancient e'mails on the
> > >       list), if the NT-Domain is set jCIFS will try querying the Domain
> > >       Master Browser (the <1B> name) for the browse list.
> > 
> > That is only if you specify a workgroup/server name so it doesn't apply
> > to the 'smb://' only case.
> 
> ...unless there was a default workgroup.  The default workgroup, by the
> way, is not part of the SMB URL.  Samba and Windows have a default
> workgroup already, so this would just bring jCIFS up-to-speed in that
> sense.

Am I hearing you correctly? Wouldn't that really screw up the
semantics? If you get the servers who are members of your default
workgroup using just 'smb://' then how do you get the workgroup list?

> 
> > If you specify 'smb://foo', to find out what 'foo' is it will query for
> > that name with 0x1b if you specify WINS and 0x1d if you don't. It also
> > looks for the 0x20 name in concert:
> 
> Makes sense, though it might be good to look for the <1D> name first.  The 
> <1D> entry will have a more up-to-date picture of the local LAN, while the 
> <1B> will have a better snapshot of the NT-Domain as a whole.  Hmmm... I'm
> not really sure which is better.
> 
> :
> :
> > AKA you don't have a local master browser (..__MSBROWSE__.<01>) to
> > give you the list of domains Andrea. MS clients are installed with a
> > 'workgroup' name that they can use to find a domain master browser in
> > which case it doesn't need to look fot the LMB.
> 
> ...but Windows clients will look for the LMB first (unless they are in P
> mode).  In fact, I don't believe that a Windows M, H, or B mode node will
> query the DMB directly.  They all query the LMB (which may send them to a 
> backup browser).
> 
> Chris -)-----
> 
> -- 
> 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
> 


-- 
A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and more importantly to tasks that have not
yet been conceived. 



More information about the jcifs mailing list