]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/smb2: improve smb2.notify.invalid-reauth
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Mar 2021 12:53:36 +0000 (13:53 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 17 Mar 2021 00:49:32 +0000 (00:49 +0000)
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 <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/notify.c

index 6081d394c6e23d0613d3900634b3f37520159c54..2eea94fbe65d0c0e366cde7c6b983cfe6d66c7b2 100644 (file)
@@ -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;