summaryrefslogtreecommitdiff
path: root/source4/selftest/tests.py
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2021-07-26 10:18:05 +0200
committerAndreas Schneider <asn@cryptomilk.org>2021-08-03 10:18:26 +0000
commit23e5b7cc79b006ae9260d3723e6c44ad66589382 (patch)
tree764764e56b6c78a873324edad27a1bf324b55ed4 /source4/selftest/tests.py
parentf1df0c4d0ad43ed1726ba961810078059b990be3 (diff)
downloadsamba-23e5b7cc79b006ae9260d3723e6c44ad66589382.tar.gz
s4:torture: Add rpc netlogon fips test
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Aug 3 10:18:26 UTC 2021 on sn-devel-184
Diffstat (limited to 'source4/selftest/tests.py')
-rwxr-xr-xsource4/selftest/tests.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index acf2cf95d35..01c190704a0 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -201,7 +201,11 @@ all_rpc_tests = ncalrpc_tests + ncacn_np_tests + ncacn_ip_tcp_tests + slow_ncacn
rpc_s3only = [
"rpc.mdssvc",
]
-rpc_tests = [x for x in smbtorture4_testsuites("rpc.") if x not in rpc_s3only]
+rpc_fipsonly = [
+ "rpc.fips.netlogon.crypto",
+]
+rpc_exclude = rpc_s3only + rpc_fipsonly
+rpc_tests = [x for x in smbtorture4_testsuites("rpc.") if x not in rpc_exclude]
auto_rpc_tests = list(filter(lambda t: t not in all_rpc_tests, rpc_tests))
for bindoptions in ["seal,padcheck"] + validate_list + ["bigendian"]:
@@ -636,6 +640,16 @@ if have_gnutls_fips_mode_support:
environ={'GNUTLS_FORCE_FIPS_MODE': '1',
'OPENSSL_FORCE_FIPS_MODE': '1'})
+ plansmbtorture4testsuite('rpc.fips.netlogon.crypto',
+ 'ad_dc_fips',
+ ['ncacn_np:$SERVER[krb5]',
+ '-U$USERNAME%$PASSWORD',
+ '--workgroup=$DOMAIN',
+ '--client-protection=encrypt'],
+ 'samba4.rpc.fips.netlogon.crypto',
+ environ={'GNUTLS_FORCE_FIPS_MODE': '1',
+ 'OPENSSL_FORCE_FIPS_MODE': '1'})
+
plansmbtorture4testsuite('rpc.echo', "ad_dc_ntvfs", ['ncacn_np:$NETBIOSALIAS', '-U$DOMAIN/$USERNAME%$PASSWORD'], "samba4.rpc.echo against NetBIOS alias")
# Test wbinfo trust auth