s3: smb2 - Check supplied impersonation level on SMB2_CREATE.
authorJeremy Allison <jra@samba.org>
Mon, 16 Jun 2014 21:13:02 +0000 (14:13 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 Jun 2014 05:15:13 +0000 (07:15 +0200)
commit1c44d9a3e1f0ffdb3848c6a7b1e01057a42d5359
tree7d46f4dfee6f3162bf8971d0ad0bae10d063bb43
parent37b4c9e08f67efc029851de7bd126aeaaceec2b1
s3: smb2 - Check supplied impersonation level on SMB2_CREATE.

MS-SMB2: 2.2.13 SMB2 CREATE Request
ImpersonationLevel ... MUST contain one of the following values.
The server MUST validate this field, but otherwise ignore it.

NB. source4/torture/smb2/durable_open.c shows that
this check is only done on real opens, not on durable
handle reopens.

Found and fix confirmed by Microsoft test tool.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
source3/smbd/smb2_create.c