From: "Christopher R. Hertel" <crh@ubiqx.mn.org>
To: Shirish S Pargaonkar <shirishp@us.ibm.com>
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>,
Steve French <smfrench@gmail.com>,
linux-cifs-client@lists.samba.org,
linux-cifs-client-bounces+shirishp=us.ibm.com@lists.samba.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [linux-cifs-client] Re: SMB support still missing?
Date: Thu, 08 Feb 2007 18:58:07 -0600 [thread overview]
Message-ID: <45CBC71F.30607@ubiqx.mn.org> (raw)
In-Reply-To: <OFCB86D528.05DE4D00-ON8725727D.000397BF-8625727D.0003B058@us.ibm.com>
Shirish S Pargaonkar wrote:
:
> This is what Steve had mailed me once, a while ago....
>
> Win9x and Windows ME and OS/2 only listen on port 139
>
> WindowsNT 4 (?) and later listen on port 445 and port 139.
>
> When you connect on the older port 139, you are supposed to send a
> RFC1001 (NBSS Session Request to indicate your client netbios name, but
> the problem is that you don't know the target netbios name of the server
> - which is why the either needs to support the fake name "*SMBSERVER" or
> the client needs to specify the "servernetbiosname=<name>" option on
> mount to identify which name on the server to try to connect to.
>
> So
> 1) try tcp connection on 445,
> then if it works send SMB negprot
> 2) else try tcp connection on port 139
> then if it works send nbss request to *SMBSERVER or to the name
> specified on servernetbiosname
> (cifs really should do an ASTAT command and list the valid names and
> find one if that approach fails but we don't have code for this yet)
This is all correct, and also note that W/9x systems do not support the
"*SMBSERVER" name.
On the other hand, the name was resolved somehow. The typical work-arounds
to not knowning the NBT name of the server are:
1) Use the name you just resolved (in this case, "CL0").
2) Send a Node Status Query and look for the first unique <20> name.
The second (as Steve explained to me a long time ago) is less reliable
because there are some applications out there which (incorrectly) register
names with a suffix byte of <20>.
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@ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/ -)----- crh@ubiqx.org
next parent reply other threads:[~2007-02-09 0:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OFCB86D528.05DE4D00-ON8725727D.000397BF-8625727D.0003B058@us.ibm.com>
2007-02-09 0:58 ` Christopher R. Hertel [this message]
2007-02-09 2:18 ` Jan Engelhardt
2007-02-09 0:14 Jan Engelhardt
2007-02-09 0:29 ` Christopher R. Hertel
2007-02-09 0:31 ` Jan Engelhardt
2007-02-09 0:53 ` Christopher R. Hertel
2007-02-09 2:22 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45CBC71F.30607@ubiqx.mn.org \
--to=crh@ubiqx.mn.org \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-cifs-client-bounces+shirishp=us.ibm.com@lists.samba.org \
--cc=linux-cifs-client@lists.samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shirishp@us.ibm.com \
--cc=smfrench@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®