summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-25 11:12:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:46 -0500
commit43405e07446bfaaee25bcd0b1140667b533e59e3 (patch)
treea0fd8858e6feed1b00309d15553317b84f2ea525 /source4/torture/smb2
parent6724c0185cb81b16fc081691711aafdf06a8253d (diff)
downloadsamba-43405e07446bfaaee25bcd0b1140667b533e59e3.tar.gz
samba-43405e07446bfaaee25bcd0b1140667b533e59e3.tar.bz2
samba-43405e07446bfaaee25bcd0b1140667b533e59e3.zip
r11904: added smb2_tdis() testing
(This used to be commit e2ed615a44d825f8c46755408a1a1657222a508b)
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r--source4/torture/smb2/connect.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c
index 080bb5a1c5..a1215e3ae7 100644
--- a/source4/torture/smb2/connect.c
+++ b/source4/torture/smb2/connect.c
@@ -195,7 +195,19 @@ BOOL torture_smb2_connect(void)
torture_smb2_close(tree, h1);
torture_smb2_close(tree, h2);
- status = smb2_logoff(tree);
+ status = smb2_tdis(tree);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("tdis failed - %s\n", nt_errstr(status));
+ return False;
+ }
+
+ status = smb2_tdis(tree);
+ if (!NT_STATUS_EQUAL(status, NT_STATUS_NETWORK_NAME_DELETED)) {
+ printf("tdis should have disabled session - %s\n", nt_errstr(status));
+ return False;
+ }
+
+ status = smb2_logoff(tree);
if (!NT_STATUS_IS_OK(status)) {
printf("Logoff failed - %s\n", nt_errstr(status));
return False;