[jcifs] JCIFS and RAW Mode

Michael B Allen miallen at ioplex.com
Tue Aug 28 21:48:34 GMT 2007


On Tue, 28 Aug 2007 14:15:31 -0700
"Steven Zgaljic" <szgaljic at gmail.com> wrote:

> Chris,
> 
> Actually, I'm not really sure what I'm referring too, the only information I
> have to go on is "Does JCIFS use RAW Mode"? Such a broad question
> is too complex to answer, however, I think the information that Mike
> provided might be enough for me to determine if we are using JCIFS in RAW
> mode.
> 
> Mike,
> 
> So to be as simplistic as possible you are saying that if I am connecting
> with port 445 I am using RAW Mode and if I am using 139 it is not RAW Mode?

If you're referring to raw transport then yes, port 445 uses raw transport
and port 139 uses NetBIOS.

> Would you be able to point me to some type of documentation detailing this
> information?

No, there's no documentation about raw transport. It's just part of the
logic of the code. It simply tries port 445 and falls-back to 139. Not
much to document about that.

Mike

> On 8/28/07, Christopher R. Hertel <crh at ubiqx.mn.org> wrote:
> >
> > Michael B Allen wrote:
> > > On Tue, 28 Aug 2007 10:28:30 -0400
> > > "Steven Zgaljic" <szgaljic at gmail.com> wrote:
> > >
> > >> Hello,
> > >>
> > >> I am currently developing an embedded Java application and utilizing
> > the
> > >> jCIFS library for the CIFS implementation. Recently a question came
> > about
> > >> concerning "Raw Mode". I did research and understand this technology,
> > >> however, I cannot find any documentation detailing if jCIFS implements
> > such
> > >> a mode. Is Raw Mode is a configurable jCIFS property? Does jCIFS rely
> > on
> > >> this mode and it cannot be changed, or does it not use Raw Mode at all
> > and
> > >> it's not possible?
> > >
> > > Hi Steven,
> > >
> > > Raw mode just means port 445 without the NetBIOS session establishment
> > > and only the length of the packet in the 4 byte header which on port
> > > 139 would be the NetBIOS header.
> > >
> > > By default JCIFS will try to connect to port 445 and thus operate in raw
> > > mode. But if that fails it falls back to 139 (e.g. because the server
> > > does not support 445 like NT).
> >
> > ...unless he means SMB_COM_READ_RAW/SMB_COM_WRITE_RAW.  Those, however,
> > are
> > deprecated calls and nothing much uses them.
> >
> > Chris -)-----
> >
> > --
> > "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
> >
> 


-- 
Michael B Allen
PHP Active Directory Kerberos SSO
http://www.ioplex.com/


More information about the jcifs mailing list