[MAC Lion] smbclient "Open AndX Request->STATUS_NOT_SUPPORTED"
Christopher R. Hertel
crh at ubiqx.mn.org
Mon Aug 1 09:43:59 MDT 2011
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.
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.
>
> George
>> Volker
>>
>> --
>> 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
mailing list