From: Christof Schmitt Date: Tue, 24 Apr 2018 20:52:59 +0000 (-0700) Subject: selftest: Add testcase for querying sessions after smbd crash X-Git-Tag: ldb-1.4.0~531 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e04846c7df8e3eec1f3dbb2fc5eaf47ceb1c44d2;p=thirdparty%2Fsamba.git selftest: Add testcase for querying sessions after smbd crash BUG: https://bugzilla.samba.org/show_bug.cgi?id=13407 Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison --- diff --git a/selftest/knownfail b/selftest/knownfail index a2aeed2690d..44bdbd873cc 100644 --- a/selftest/knownfail +++ b/selftest/knownfail @@ -343,3 +343,4 @@ # Disabling NTLM means you can't use samr to change the password ^samba.tests.ntlmdisabled.python\(ktest\).ntlmdisabled.NtlmDisabledTests.test_samr_change_password\(ktest\) ^samba.tests.ntlmdisabled.python\(ad_dc_no_ntlm\).ntlmdisabled.NtlmDisabledTests.test_ntlm_connection\(ad_dc_no_ntlm\) +^samba3.blackbox.rpcclient_netsessenum.count2\(ad_member\) diff --git a/source3/script/tests/test_rpcclient_netsessenum.sh b/source3/script/tests/test_rpcclient_netsessenum.sh new file mode 100755 index 00000000000..9abb3ae3db5 --- /dev/null +++ b/source3/script/tests/test_rpcclient_netsessenum.sh @@ -0,0 +1,55 @@ +#!/bin/sh +# +# Blackbox tests for the rpcclient srvsvc commands +# +# Copyright (C) 2018 Christof Schmitt + +if [ $# -lt 6 ]; then +cat <