The Samba-Bugzilla – Bug 7173
Samba server does not strictly check SMB2 open
Last modified: 2011-07-30 09:09:48 UTC
Have capture which shows SMB2 open of a file to Windows 2008 R2 fails with Invalid parameter but same works to Samba 3. Samba server has more relaxed checks.
Created attachment 5417 [details]
mkdir fails (as expected) to win2008r2
Created attachment 5418 [details]
to current samba 3 (mkdir should fail on SMB2 open)
Does this still happens with 3.6.0-rc3?
STATUS_INVALID_PARAMETER is strange, I'd expect STATUS_OBJECT_NAME_INVALID
as the name starts with '\'.
[MS-SMB2] 126.96.36.199 Receiving an SMB2 CREATE Request
If the file name length is greater than zero and the first character is a separator character, the server MUST fail the request with STATUS_OBJECT_NAME_INVALID.