From: Stefan Metzmacher Date: Tue, 9 Mar 2021 12:53:36 +0000 (+0100) Subject: s4:torture/smb2: improve smb2.notify.invalid-reauth X-Git-Tag: tevent-0.11.0~1490 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30fa5a45c2df42cc5c28a912cb4f11f514a89390;p=thirdparty%2Fsamba.git s4:torture/smb2: improve smb2.notify.invalid-reauth This demonstrates that the session is gone after a failed reauth. This is different compared to a failing session bind. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14512 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index 6081d394c6e..2eea94fbe65 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -1647,6 +1647,11 @@ static bool torture_smb2_notify_invalid_reauth(struct torture_context *torture, CHECK_STATUS(status, NT_STATUS_NOTIFY_CLEANUP); CHECK_VAL(notify.smb2.out.num_changes, 0); + /* + * Demonstrate that the session is no longer valid. + */ + status = smb2_create(tree1, torture, &(io.smb2)); + CHECK_STATUS(status, NT_STATUS_USER_SESSION_DELETED); done: smb2_deltree(tree2, BASEDIR_IR); return ret;