[MAC Lion] smbclient "Open AndX Request->STATUS_NOT_SUPPORTED"
George K Colley
gcolley at apple.com
Mon Aug 1 21:48:51 MDT 2011
On Aug 1, 2011, at 8:43 AM, Christopher R. Hertel wrote:
> In theory, theory and practice are the same. In practice, they're not.
> Volker: You're right to be cautious here, but I think that counting
> on a broken CIFS server to send back a correct error code is
> just as risky as counting on the CAP_NT_SMBS bit to be correct.
> Sending the NT_STATUS_NOT_SUPPORTED error is correct behavior if the command
> is recognized but not supported. We made that clear in [MS-CIFS], but I
> don't believe that it was clearly specified in any earlier documentation.
> The use of CAP_NT_SMBS was documented earlier.
> I'm not sure why CAP_NT_SMBS is there. It's fairly silly to negotiate NT LM
> 0.12 and then not support the full set of NT SMB commands.
Window 95/98 support the NT LM 0.12 dialect but did not set the CAP_NT_SMBS bit. This meant the some calls were not supported. This include any "NT_". I could get you a list of the ones I know if anyone is interested.
> Chris -)-----
> George K Colley wrote:
>> On Jul 31, 2011, at 10:43 AM, Volker Lendecke wrote:
>>> On Sat, Jul 30, 2011 at 09:15:54PM -0500, Christopher R. Hertel wrote:
>>>> That should work.
>>>> ...but if smbclient negotiates "NT LM 0.12", receives CAP_NT_SMBS from the
>>>> server, and sends CAP_NT_SMBS back to the server, then it should always use
>>>> NT_CREATE&X, not OPEN&X.
>>> I'd rather go with try-and-error method. We might put down
>>> in the client structure that open&x is not supported, but
>>> relying on capability bits is a bad idea IMO. Too many
>>> broken or deliberately crippled CIFS servers out there.
>> I have never ran into a server that didn't work in the way that Chris says above. But I will leave the decision on how the smbclient should work up to the Samba Team.
>>> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
>>> phone: +49-551-370000-0, fax: +49-551-370000-9
>>> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
> "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 samba-technical