2 # This script generates a list of testsuites that should be run as part of
3 # the Samba 4 test suite.
5 # The output of this script is parsed by selftest.pl, which then decides
6 # which of the tests to actually run. It will, for example, skip all tests
7 # listed in selftest/skip or only run a subset during "make quicktest".
9 # The idea is that this script outputs all of the tests of Samba 4, not
10 # just those that are known to pass, and list those that should be skipped
11 # or are known to fail in selftest/skip or selftest/knownfail. This makes it
12 # very easy to see what functionality is still missing in Samba 4 and makes
13 # it possible to run the testsuite against other servers, such as Samba 3 or
14 # Windows that have a different set of features.
16 # The syntax for a testsuite is "-- TEST --" on a single line, followed
17 # by the name of the test, the environment it needs and the command to run, all
18 # three separated by newlines. All other lines in the output are considered
23 sys
.path
.insert(0, os
.path
.join(os
.path
.dirname(__file__
), "../../selftest"))
24 import selftesthelpers
25 from selftesthelpers
import bindir
, srcdir
, binpath
, python
26 from selftesthelpers
import configuration
, plantestsuite
27 from selftesthelpers
import planpythontestsuite
, planperltestsuite
28 from selftesthelpers
import plantestsuite_loadlist
29 from selftesthelpers
import skiptestsuite
, source4dir
, valgrindify
30 from selftesthelpers
import smbtorture4_options
, smbtorture4_testsuites
31 from selftesthelpers
import smbtorture4
, samba3srcdir
34 print("OPTIONS %s" % " ".join(smbtorture4_options
), file=sys
.stderr
)
37 def plansmbtorture4testsuite(name
, env
, options
, modname
=None, environ
=None):
41 return selftesthelpers
.plansmbtorture4testsuite(name
,
49 samba4srcdir
= source4dir()
50 DSDB_PYTEST_DIR
= os
.path
.join(samba4srcdir
, "dsdb/tests/python/")
51 subunitrun
= valgrindify(python
) + " " + os
.path
.join(samba4srcdir
, "scripting/bin/subunitrun")
54 def planoldpythontestsuite(env
, module
, name
=None, extra_path
=None, environ
=None, extra_args
=None):
55 if extra_path
is None:
59 if extra_args
is None:
61 environ
= dict(environ
)
62 py_path
= list(extra_path
)
64 environ
["PYTHONPATH"] = ":".join(["$PYTHONPATH"] + py_path
)
65 args
= ["%s=%s" % item
for item
in environ
.items()]
66 args
+= [subunitrun
, "$LISTOPT", "$LOADLIST", module
]
70 plantestsuite_loadlist(name
, env
, args
)
73 samba4bindir
= bindir()
74 validate
= os
.getenv("VALIDATE", "")
76 validate_list
= [validate
]
80 nmblookup4
= binpath('nmblookup4')
81 smbclient4
= binpath('smbclient4')
82 smbclient3
= binpath('smbclient')
84 bbdir
= os
.path
.join(srcdir(), "testprogs/blackbox")
86 # alias to highlight what tests we want to run against a DC with SMBv1 disabled
87 smbv1_disabled_testenv
= "restoredc"
89 all_fl_envs
= ["fl2000dc", "fl2003dc", "fl2008dc", "fl2008r2dc"]
91 # Simple tests for LDAP and CLDAP
92 for auth_type
in ['', '-k no', '-k yes']:
93 for auth_level
in ['--option=clientldapsaslwrapping=plain', '--client-protection=sign', '--client-protection=encrypt']:
94 creds
= '-U"$USERNAME%$PASSWORD"'
95 options
= creds
+ ' ' + auth_type
+ ' ' + auth_level
96 plantestsuite("samba4.ldb.ldap with options %r(ad_dc_default)" % options
, "ad_dc_default", "%s/test_ldb.sh ldap $SERVER %s" % (bbdir
, options
))
98 # see if we support ADS on the Samba3 side
100 config_h
= os
.environ
["CONFIG_H"]
102 config_h
= os
.path
.join(samba4bindir
, "default/include/config.h")
104 # check available features
106 f
= open(config_h
, 'r')
108 lines
= f
.readlines()
109 config_hash
= dict((x
[0], ' '.join(x
[1:]))
110 for x
in map(lambda line
: line
.strip().split(' ')[1:],
111 list(filter(lambda line
: (line
[0:7] == '#define') and (len(line
.split(' ')) > 2), lines
))))
115 have_heimdal_support
= ("SAMBA4_USES_HEIMDAL" in config_hash
)
116 have_gnutls_fips_mode_support
= ("HAVE_GNUTLS_FIPS_MODE_SUPPORTED" in config_hash
)
117 have_cluster_support
= "CLUSTER_SUPPORT" in config_hash
119 for options
in ['-U"$USERNAME%$PASSWORD"']:
120 plantestsuite("samba4.ldb.ldaps with options %s(ad_dc_ntvfs)" % options
, "ad_dc_ntvfs",
121 "%s/test_ldb.sh ldaps $SERVER_IP %s" % (bbdir
, options
))
124 '--simple-bind-dn=$USERNAME@$REALM --password=$PASSWORD',
127 'SERVER_IP': '$SERVER_IP',
128 'SERVER_NAME': '$SERVER',
129 'SERVER.REALM': '$SERVER.$REALM',
131 tls_verify_options
= [
132 '--option="tlsverifypeer=no_check"',
133 '--option="tlsverifypeer=ca_only"',
134 '--option="tlsverifypeer=ca_and_name_if_available"',
135 '--option="tlsverifypeer=ca_and_name"',
136 '--option="tlsverifypeer=as_strict_as_possible"',
139 # we use :local for fl2008r2dc because of the self-signed certificate
140 for env
in ["ad_dc_ntvfs", "fl2008r2dc:local"]:
141 for peer_key
in peer_options
.keys():
142 peer_val
= peer_options
[peer_key
]
143 for creds
in creds_options
:
144 for tls_verify
in tls_verify_options
:
145 options
= creds
+ ' ' + tls_verify
146 plantestsuite("samba4.ldb.simple.ldaps with options %s %s(%s)" % (
147 peer_key
, options
, env
), env
,
148 "%s/test_ldb_simple.sh ldaps %s %s" % (bbdir
, peer_val
, options
))
150 # test all "ldap server require strong auth" combinations
151 for env
in ["ad_dc_ntvfs", "fl2008r2dc", "fl2003dc"]:
152 options
= '--simple-bind-dn="$USERNAME@$REALM" --password="$PASSWORD"'
153 plantestsuite("samba4.ldb.simple.ldap with SIMPLE-BIND %s(%s)" % (options
, env
),
154 env
, "%s/test_ldb_simple.sh ldap $SERVER %s" % (bbdir
, options
))
155 options
+= ' --option="tlsverifypeer=no_check"'
156 plantestsuite("samba4.ldb.simple.ldaps with SIMPLE-BIND %s(%s)" % (options
, env
),
157 env
, "%s/test_ldb_simple.sh ldaps $SERVER %s" % (bbdir
, options
))
160 '--option=clientldapsaslwrapping=plain',
161 '--client-protection=sign',
162 '--client-protection=encrypt',
163 '--use-kerberos=required --option=clientldapsaslwrapping=plain',
164 '--use-kerberos=required --client-protection=sign',
165 '--use-kerberos=required --client-protection=encrypt',
166 '--use-kerberos=required --client-protection=sign --option="ldap_testing:channel_bound=yes"',
167 '--use-kerberos=required --client-protection=sign --option="ldap_testing:channel_bound=no"',
168 '--use-kerberos=required --client-protection=sign --option="ldap_testing:channel_bound=yes" --option="ldap_testing:forced_channel_binding=wRoNg"',
169 '--use-kerberos=required --client-protection=sign --option="ldap_testing:channel_bound=no" --option="ldap_testing:forced_channel_binding=wRoNg"',
170 '--use-kerberos=disabled --option=clientldapsaslwrapping=plain',
171 '--use-kerberos=disabled --client-protection=sign --option=ntlmssp_client:ldap_style_send_seal=no',
172 '--use-kerberos=disabled --client-protection=sign',
173 '--use-kerberos=disabled --client-protection=encrypt',
174 '--use-kerberos=disabled --client-protection=sign --option="ldap_testing:channel_bound=yes"',
175 '--use-kerberos=disabled --client-protection=sign --option="ldap_testing:channel_bound=no"',
176 '--use-kerberos=disabled --client-protection=sign --option="ldap_testing:channel_bound=yes" --option="ldap_testing:forced_channel_binding=wRoNg"',
177 '--use-kerberos=disabled --client-protection=sign --option="ldap_testing:channel_bound=no" --option="ldap_testing:forced_channel_binding=wRoNg"',
180 for auth_option
in auth_options
:
181 options
= '-U"$USERNAME%$PASSWORD"' + ' ' + auth_option
182 plantestsuite("samba4.ldb.simple.ldap with SASL-BIND %s(%s)" % (options
, env
),
183 env
, "%s/test_ldb_simple.sh ldap $SERVER %s" % (bbdir
, options
))
186 '--use-kerberos=required --option="ldap_testing:channel_bound=yes" --option="ldap_testing:tls_channel_bindings=yes"',
187 '--use-kerberos=required --option="ldap_testing:channel_bound=yes" --option="ldap_testing:tls_channel_bindings=no"',
188 '--use-kerberos=required --option="ldap_testing:channel_bound=yes" --option="ldap_testing:forced_channel_binding=wRoNg"',
189 '--use-kerberos=required --option="ldap_testing:channel_bound=no" --option="ldap_testing:tls_channel_bindings=no"',
190 '--use-kerberos=required --option="ldap_testing:channel_bound=no" --option="ldap_testing:tls_channel_bindings=yes"',
191 '--use-kerberos=required --option="ldap_testing:channel_bound=no" --option="ldap_testing:forced_channel_binding=wRoNg"',
192 '--use-kerberos=disabled --option="ldap_testing:channel_bound=yes" --option="ldap_testing:tls_channel_bindings=yes"',
193 '--use-kerberos=disabled --option="ldap_testing:channel_bound=yes" --option="ldap_testing:tls_channel_bindings=no"',
194 '--use-kerberos=disabled --option="ldap_testing:channel_bound=yes" --option="ldap_testing:forced_channel_binding=wRoNg"',
195 '--use-kerberos=disabled --option="ldap_testing:channel_bound=no" --option="ldap_testing:tls_channel_bindings=no"',
196 '--use-kerberos=disabled --option="ldap_testing:channel_bound=no" --option="ldap_testing:tls_channel_bindings=yes"',
197 '--use-kerberos=disabled --option="ldap_testing:channel_bound=no" --option="ldap_testing:forced_channel_binding=wRoNg"',
199 for auth_option
in auth_options
:
200 options
= '-U"$USERNAME%$PASSWORD" --option="tlsverifypeer=no_check" ' + auth_option
201 plantestsuite("samba4.ldb.simple.ldaps with SASL-BIND %s(%s)" % (options
, env
),
202 env
, "%s/test_ldb_simple.sh ldaps $SERVER %s" % (bbdir
, options
))
203 options
+= ' --option="clientldapsaslwrapping=starttls"'
204 plantestsuite("samba4.ldb.simple.ldap starttls with SASL-BIND %s(%s)" % (options
, env
),
205 env
, "%s/test_ldb_simple.sh ldap $SERVER %s" % (bbdir
, options
))
208 envraw
= "fl2008r2dc"
209 env
= "%s:local" % envraw
210 plantestsuite("samba4.ldap_tls_reload(%s)" % (env
), env
,
211 "%s/test_ldap_tls_reload.sh $PREFIX_ABS $PREFIX_ABS/%s/private/tls $SERVER.$REALM" % (bbdir
, envraw
))
213 for options
in ['-U"$USERNAME%$PASSWORD"']:
214 plantestsuite("samba4.ldb.ldapi with options %s(ad_dc_ntvfs:local)" % options
, "ad_dc_ntvfs:local",
215 "%s/test_ldb.sh ldapi $PREFIX_ABS/ad_dc_ntvfs/private/ldapi %s" % (bbdir
, options
))
217 for t
in smbtorture4_testsuites("ldap."):
218 if t
== "ldap.nested-search":
219 plansmbtorture4testsuite(t
, "ad_dc_default_smb1", '-U"$USERNAME%$PASSWORD" //$SERVER_IP/_none_')
220 elif t
== "ldap.session-expiry":
221 # This requires kerberos and thus the server name
222 plansmbtorture4testsuite(
223 t
, "ad_dc_default", '-U"$USERNAME%$PASSWORD" //$DC_SERVER/_none_')
225 plansmbtorture4testsuite(
228 '-U"$USERNAME%$PASSWORD" //$SERVER_IP/_none_ -D "$USERNAME"@"$REALM"##"$PASSWORD"')
230 for t
in smbtorture4_testsuites("dsdb."):
231 plansmbtorture4testsuite(t
, "ad_dc:local", "localhost")
233 plantestsuite_loadlist("samba4.tests.attr_from_server.python(ad_dc_ntvfs)",
235 [python
, os
.path
.join(DSDB_PYTEST_DIR
, "attr_from_server.py"),
236 '$PREFIX_ABS/ad_dc_ntvfs/private/sam.ldb', '$LOADLIST', '$LISTOPT'])
240 # add tests to this list as they start passing, so we test
241 # that they stay passing
242 ncacn_np_tests
= ["rpc.schannel", "rpc.join", "rpc.lsa", "rpc.dssetup", "rpc.altercontext", "rpc.netlogon", "rpc.netlogon.admin", "rpc.handles", "rpc.samsync", "rpc.samba3-sessionkey", "rpc.samba3-getusername", "rpc.samba3-lsa", "rpc.samba3-bind", "rpc.samba3-netlogon", "rpc.asyncbind", "rpc.lsalookup", "rpc.lsa-getuser", "rpc.schannel2", "rpc.authcontext"]
243 ncalrpc_tests
= ["rpc.schannel", "rpc.join", "rpc.lsa", "rpc.dssetup", "rpc.altercontext", "rpc.netlogon", "rpc.netlogon.admin", "rpc.netlogon.zerologon", "rpc.asyncbind", "rpc.lsalookup", "rpc.lsa-getuser", "rpc.schannel2", "rpc.authcontext"]
244 drs_rpc_tests
= smbtorture4_testsuites("drs.rpc")
245 ncacn_ip_tcp_tests
= ["rpc.schannel", "rpc.join", "rpc.lsa", "rpc.dssetup", "rpc.drsuapi", "rpc.drsuapi_w2k8", "rpc.netlogon", "rpc.netlogon.admin", "rpc.netlogon.zerologon", "rpc.asyncbind", "rpc.lsalookup", "rpc.lsa-getuser", "rpc.schannel2", "rpc.authcontext", "rpc.samr.passwords.validate"] + drs_rpc_tests
246 slow_ncacn_np_tests
= ["rpc.samlogon",
250 "rpc.samr.users.privileges",
251 "rpc.samr.passwords.default",
252 "rpc.samr.passwords.pwdlastset",
253 "rpc.samr.passwords.lockout",
254 "rpc.samr.passwords.badpwdcount"]
255 slow_ncacn_ip_tcp_tests
= ["rpc.cracknames"]
257 all_rpc_tests
= ncalrpc_tests
+ ncacn_np_tests
+ ncacn_ip_tcp_tests
+ slow_ncacn_np_tests
+ slow_ncacn_ip_tcp_tests
+ ["rpc.lsa.secrets", "rpc.pac", "rpc.samba3-sharesec", "rpc.countcalls"]
259 # Filter RPC tests that should not run against ad_dc_ntvfs
264 "rpc.fips.netlogon.crypto",
266 rpc_exclude
= rpc_s3only
+ rpc_fipsonly
267 rpc_tests
= [x
for x
in smbtorture4_testsuites("rpc.") if x
not in rpc_exclude
]
268 auto_rpc_tests
= list(filter(lambda t
: t
not in all_rpc_tests
, rpc_tests
))
270 for bindoptions
in ["seal,padcheck"] + validate_list
+ ["bigendian"]:
271 for transport
in ["ncalrpc", "ncacn_np", "ncacn_ip_tcp"]:
272 env
= "ad_dc_default"
274 if transport
== "ncalrpc":
275 tests
= ncalrpc_tests
277 elif transport
== "ncacn_np":
278 tests
= ncacn_np_tests
279 elif transport
== "ncacn_ip_tcp":
280 tests
= ncacn_ip_tcp_tests
282 raise AssertionError("invalid transport %r" % transport
)
284 if t
== "rpc.netlogon":
286 elif t
== "rpc.join":
287 env
= "ad_dc_default_smb1"
288 plansmbtorture4testsuite(t
, env
+ local
, ["%s:$SERVER[%s]" % (transport
, bindoptions
), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.%s on %s with %s" % (t
, transport
, bindoptions
))
289 plansmbtorture4testsuite('rpc.samba3-sharesec', env
+ local
, ["%s:$SERVER[%s]" % (transport
, bindoptions
), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--option=torture:share=tmp'], "samba4.rpc.samba3.sharesec on %s with %s" % (transport
, bindoptions
))
291 # Plugin S4 DC tests (confirms named pipe auth forwarding). This can be expanded once kerberos is supported in the plugin DC
293 for bindoptions
in ["seal,padcheck"] + validate_list
+ ["bigendian"]:
294 for t
in ncacn_np_tests
:
296 transport
= "ncacn_np"
297 if t
in ["rpc.authcontext", "rpc.join"]:
299 plansmbtorture4testsuite(t
, env
, ["%s:$SERVER[%s]" % (transport
, bindoptions
), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.%s with %s" % (t
, bindoptions
))
301 for bindoptions
in [""] + validate_list
+ ["bigendian"]:
302 for t
in auto_rpc_tests
:
303 env
= "ad_dc_default"
304 if t
in ["rpc.srvsvc", "rpc.mgmt"]:
306 elif t
== "rpc.join":
307 env
= "ad_dc_default_smb1"
308 plansmbtorture4testsuite(t
, env
, ["$SERVER[%s]" % bindoptions
, '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.%s with %s" % (t
, bindoptions
))
311 plansmbtorture4testsuite(t
, "ad_dc_default:local", ["$SERVER[%s]" % bindoptions
, '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], modname
="samba4.%s" % t
)
313 for transport
in ["ncacn_np", "ncacn_ip_tcp"]:
314 env
= "ad_dc_slowtests"
315 if transport
== "ncacn_np":
316 tests
= slow_ncacn_np_tests
317 elif transport
== "ncacn_ip_tcp":
318 tests
= slow_ncacn_ip_tcp_tests
320 raise AssertionError("Invalid transport %r" % transport
)
323 if t
== 'rpc.cracknames':
325 plansmbtorture4testsuite(t
, env
, ["%s:$SERVER[%s]" % (transport
, bindoptions
), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.%s on %s with %s" % (t
, transport
, bindoptions
))
327 # Tests for the DFS referral calls implementation
328 for t
in smbtorture4_testsuites("dfs."):
329 plansmbtorture4testsuite(t
, "ad_dc_ntvfs", r
'//$SERVER/ipc\$ -U$USERNAME%$PASSWORD')
330 plansmbtorture4testsuite(t
, "ad_dc_smb1", r
'//$SERVER/ipc\$ -U$USERNAME%$PASSWORD')
332 # Tests for the NET API (net.api.become.dc tested below against all the roles)
333 net_tests
= list(filter(lambda x
: "net.api.become.dc" not in x
, smbtorture4_testsuites("net.")))
335 plansmbtorture4testsuite(t
, "ad_dc_default", '$SERVER[%s] -U$USERNAME%%$PASSWORD -W$DOMAIN' % validate
)
337 # Tests for session keys and encryption of RPC pipes
338 # FIXME: Integrate these into a single smbtorture test
340 transport
= "ncacn_np"
341 for env
in ["ad_dc_default", "nt4_dc"]:
343 "-k no --option=clientusespnego=yes",
344 "-k no --option=clientusespnego=yes --option=ntlmssp_client:128bit=no",
345 "-k no --option=clientusespnego=yes --option=ntlmssp_client:56bit=yes",
346 "-k no --option=clientusespnego=yes --option=ntlmssp_client:56bit=no",
347 "-k no --option=clientusespnego=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=yes",
348 "-k no --option=clientusespnego=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=no",
349 "-k no --option=clientusespnego=yes --option=clientntlmv2auth=yes",
350 "-k no --option=clientusespnego=yes --option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no",
351 "-k no --option=clientusespnego=yes --option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=yes",
352 "-k no --option=clientusespnego=no --option=clientntlmv2auth=yes",
353 "-k no --option=gensec:spnego=no --option=clientntlmv2auth=yes",
354 "-k no --option=clientusespnego=no"]:
355 name
= "rpc.lsa.secrets on %s with with %s" % (transport
, ntlmoptions
)
356 plansmbtorture4testsuite('rpc.lsa.secrets', env
, ["%s:$SERVER[]" % (transport
), ntlmoptions
, '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--option=gensec:target_hostname=$NETBIOSNAME'], "samba4.%s" % name
)
357 plantestsuite("samba.blackbox.pdbtest(%s)" % env
, "%s:local" % env
, [os
.path
.join(bbdir
, "test_pdbtest.sh"), '$SERVER', "$PREFIX", "pdbtest", smbclient3
, '$SMB_CONF_PATH', configuration
])
359 gpo
= smbtorture4_testsuites("gpo.")
361 plansmbtorture4testsuite(t
, 'ad_dc:local', ['//$SERVER/sysvol', '-U$USERNAME%$PASSWORD'])
363 transports
= ["ncacn_np", "ncacn_ip_tcp"]
365 # Kerberos varies between functional levels, so it is important to check this on all of them
366 for env
in all_fl_envs
:
367 transport
= "ncacn_np"
368 plansmbtorture4testsuite('rpc.pac', env
, ["%s:$SERVER[]" % (transport
, ), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.rpc.pac on %s" % (transport
,))
369 plansmbtorture4testsuite('rpc.lsa.secrets', env
, ["%s:$SERVER[]" % (transport
, ), '-k', 'yes', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--option=gensec:target_hostname=$NETBIOSNAME', 'rpc.lsa.secrets'], "samba4.rpc.lsa.secrets on %s with Kerberos" % (transport
,))
370 plansmbtorture4testsuite('rpc.lsa.secrets', env
, ["%s:$SERVER[target_principal=dcom/$NETBIOSNAME]" % (transport
, ), '-k', 'yes', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.rpc.lsa.secrets on %s with Kerberos - netbios name principal dcom" % (transport
,))
371 plansmbtorture4testsuite('rpc.lsa.secrets', env
, [r
"%s:$SERVER[target_principal=$NETBIOSNAME\$]" % (transport
, ), '-k', 'yes', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.rpc.lsa.secrets on %s with Kerberos - netbios name principal dollar" % (transport
,))
372 plansmbtorture4testsuite('rpc.lsa.secrets', env
, ["%s:$SERVER[target_principal=$NETBIOSNAME]" % (transport
, ), '-k', 'yes', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.rpc.lsa.secrets on %s with Kerberos - netbios name principal" % (transport
,))
373 plansmbtorture4testsuite('rpc.lsa.secrets.none*', env
, ["%s:$SERVER" % transport
, '-k', 'yes', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', "--option=gensec:fake_gssapi_krb5=yes", '--option=gensec:gssapi_krb5=no', '--option=gensec:target_hostname=$NETBIOSNAME'], "samba4.rpc.lsa.secrets on %s with Kerberos - use Samba3 style login" % transport
)
374 plansmbtorture4testsuite('rpc.lsa.secrets.none*', env
, ["%s:$SERVER" % transport
, '-k', 'yes', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', "--option=gensec:fake_gssapi_krb5=yes", '--option=gensec:gssapi_krb5=no', '--option=gensec:target_hostname=$NETBIOSNAME', '--option=gensec_krb5:send_authenticator_checksum=false'], "samba4.rpc.lsa.secrets on %s with Kerberos - use raw-krb5-no-authenticator-checksum style login" % transport
)
376 # Winreg tests test bulk Kerberos encryption of DCE/RPC
377 # We test rpc.winreg here too, because the winreg interface if
378 # handled by the source3/rpc_server code.
379 for bindoptions
in ["connect", "packet", "krb5", "krb5,packet", "krb5,sign", "krb5,seal", "spnego", "spnego,packet", "spnego,sign", "spnego,seal"]:
380 plansmbtorture4testsuite('rpc.winreg', env
, ["%s:$SERVER[%s]" % (transport
, bindoptions
), '-k', 'yes', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.rpc.winreg on %s with %s" % (transport
, bindoptions
))
382 for transport
in transports
:
383 plansmbtorture4testsuite('rpc.echo', env
, ["%s:$SERVER[]" % (transport
,), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.rpc.echo on %s" % (transport
, ))
385 # Echo tests test bulk Kerberos encryption of DCE/RPC
386 for bindoptions
in ["connect", "krb5", "krb5,sign", "krb5,seal", "spnego", "spnego,sign", "spnego,seal"] + validate_list
+ ["padcheck", "bigendian", "bigendian,seal"]:
387 echooptions
= "--option=socket:testnonblock=True --option=torture:quick=yes -k yes"
388 plansmbtorture4testsuite('rpc.echo', env
, ["%s:$SERVER[%s]" % (transport
, bindoptions
), echooptions
, '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.rpc.echo on %s with %s and %s" % (transport
, bindoptions
, echooptions
))
390 for env
in ["fl2000dc", "fl2008r2dc"]:
391 plansmbtorture4testsuite("net.api.become.dc", env
, '$SERVER[%s] -U$USERNAME%%$PASSWORD -W$DOMAIN' % validate
)
393 for bindoptions
in ["sign", "seal"]:
394 plansmbtorture4testsuite('rpc.backupkey', "ad_dc_default", ["ncacn_np:$SERVER[%s]" % (bindoptions
), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.rpc.backupkey with %s" % (bindoptions
))
396 for transport
in transports
:
397 for bindoptions
in ["sign", "seal"]:
399 "--option=ntlmssp_client:ntlm2=yes --option=torture:quick=yes",
400 "--option=ntlmssp_client:ntlm2=no --option=torture:quick=yes",
401 "--option=ntlmssp_client:ntlm2=yes --option=ntlmssp_client:128bit=no --option=torture:quick=yes",
402 "--option=ntlmssp_client:ntlm2=no --option=ntlmssp_client:128bit=no --option=torture:quick=yes",
403 "--option=ntlmssp_client:ntlm2=yes --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes",
404 "--option=ntlmssp_client:ntlm2=no --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes",
405 "--option=clientntlmv2auth=yes --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes",
406 "--option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=yes --option=torture:quick=yes",
407 "--option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes"]:
408 if transport
== "ncalrpc":
409 env
= "ad_dc_default:local"
411 env
= "ad_dc_default"
412 plansmbtorture4testsuite('rpc.echo', env
, ["%s:$SERVER[%s]" % (transport
, bindoptions
), ntlmoptions
, '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.rpc.echo on %s with %s and %s" % (transport
, bindoptions
, ntlmoptions
))
414 plansmbtorture4testsuite('rpc.echo', "ad_dc_default", ['ncacn_np:$SERVER[smb2]', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.rpc.echo on ncacn_np over smb2")
415 for env
in ["ad_dc", "nt4_dc"]:
416 plansmbtorture4testsuite('rpc.echo', env
, ['60a15ec5-4de8-11d7-a637-005056a20182@ncacn_np:$SERVER[]', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--option=torture:quick=yes'], "samba4.rpc.echo on ncacn_np with object")
417 plansmbtorture4testsuite('rpc.echo', env
, ['60a15ec5-4de8-11d7-a637-005056a20182@ncacn_ip_tcp:$SERVER[]', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--option=torture:quick=yes'], "samba4.rpc.echo on ncacn_ip_tcp with object")
419 plansmbtorture4testsuite('ntp.signd', "ad_dc_default:local", ['ncacn_np:$SERVER', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.ntp.signd")
421 nbt_tests
= smbtorture4_testsuites("nbt.")
423 plansmbtorture4testsuite(t
, "ad_dc_ntvfs", "//$SERVER/_none_ -U\"$USERNAME%$PASSWORD\"")
425 # Tests against the NTVFS POSIX backend
426 ntvfsargs
= ["--option=torture:sharedelay=100000", "--option=torture:oplocktimeout=3", "--option=torture:writetimeupdatedelay=500000"]
428 # Filter smb2 tests that should not run against ad_dc_ntvfs
430 "smb2.change_notify_disabled",
433 "smb2.kernel-oplocks",
434 "smb2.durable-v2-delay",
438 "smb2.async_dosmode",
441 "smb2.create_no_streams",
443 smb2
= [x
for x
in smbtorture4_testsuites("smb2.") if x
not in smb2_s3only
]
445 # The QFILEINFO-IPC test needs to be on ipc$
446 raw
= list(filter(lambda x
: "raw.qfileinfo.ipc" not in x
, smbtorture4_testsuites("raw.")))
447 base
= smbtorture4_testsuites("base.")
449 netapi
= smbtorture4_testsuites("netapi.")
451 for t
in base
+ raw
+ smb2
+ netapi
:
452 plansmbtorture4testsuite(t
, "ad_dc_ntvfs", ['//$SERVER/tmp', '-U$USERNAME%$PASSWORD'] + ntvfsargs
)
454 libsmbclient
= smbtorture4_testsuites("libsmbclient.")
455 protocols
= [ 'NT1', 'SMB3' ]
456 for t
in libsmbclient
:
457 url
= "smb://$USERNAME:$PASSWORD@$SERVER/tmp"
458 if t
== "libsmbclient.list_shares":
459 url
= "smb://$USERNAME:$PASSWORD@$SERVER"
460 if t
== "libsmbclient.utimes":
463 libsmbclient_testargs
= [
465 '-U$USERNAME%$PASSWORD',
466 "--option=torture:smburl=" + url
,
467 "--option=torture:replace_smbconf="
468 "%s/testdata/samba3/smb_new.conf" % srcdir()
471 for proto
in protocols
:
472 plansmbtorture4testsuite(
474 "nt4_dc" if proto
== "SMB3" else "nt4_dc_smb1_done",
475 libsmbclient_testargs
+
476 [ "--option=torture:clientprotocol=%s" % proto
],
477 "samba4.%s.%s" % (t
, proto
))
479 url
= "smb://baduser:invalidpw@$SERVER/tmpguest"
480 t
= "libsmbclient.noanon_list"
481 libsmbclient_testargs
= [
482 '//$SERVER/tmpguest',
483 '-U$USERNAME%$PASSWORD',
484 "--option=torture:smburl=" + url
,
485 "--option=torture:replace_smbconf="
486 "%s/testdata/samba3/smb_new.conf" % srcdir()
488 for proto
in protocols
:
489 plansmbtorture4testsuite(t
,
491 libsmbclient_testargs
+
492 [ "--option=torture:clientprotocol=%s" % proto
],
493 "samba4.%s.baduser.%s" % (t
, proto
))
495 plansmbtorture4testsuite("raw.qfileinfo.ipc", "ad_dc_ntvfs", r
'//$SERVER/ipc\$ -U$USERNAME%$PASSWORD')
497 for t
in smbtorture4_testsuites("rap."):
498 plansmbtorture4testsuite(t
, "ad_dc_ntvfs", r
'//$SERVER/IPC\$ -U$USERNAME%$PASSWORD')
500 # Tests against the NTVFS CIFS backend
502 plansmbtorture4testsuite(t
, "ad_dc_ntvfs", ['//$NETBIOSNAME/cifs', '-U$USERNAME%$PASSWORD', '--kerberos=yes'] + ntvfsargs
, modname
="samba4.ntvfs.cifs.krb5.%s" % t
)
504 # Test NTVFS CIFS backend with S4U2Self and S4U2Proxy
506 plansmbtorture4testsuite(t
, "ad_dc_ntvfs", ['//$NETBIOSNAME/cifs', '-U$USERNAME%$PASSWORD', '--kerberos=no'] + ntvfsargs
, "samba4.ntvfs.cifs.ntlm.%s" % t
)
507 plansmbtorture4testsuite(t
, "rpc_proxy", ['//$NETBIOSNAME/cifs_to_dc', '-U$DC_USERNAME%$DC_PASSWORD', '--kerberos=yes'] + ntvfsargs
, "samba4.ntvfs.cifs.krb5.%s" % t
)
508 plansmbtorture4testsuite(t
, "rpc_proxy", ['//$NETBIOSNAME/cifs_to_dc', '-U$DC_USERNAME%$DC_PASSWORD', '--kerberos=no'] + ntvfsargs
, "samba4.ntvfs.cifs.ntlm.%s" % t
)
510 plansmbtorture4testsuite('echo.udp', 'ad_dc_ntvfs:local', '//$SERVER/whatever')
513 for t
in smbtorture4_testsuites("local."):
514 # The local.resolve test needs a name to look up using real system (not emulated) name routines
515 plansmbtorture4testsuite(t
, "none", "ncalrpc:localhost")
517 # Confirm these tests with the system iconv too
518 for t
in ["local.convert_string_handle", "local.convert_string", "local.ndr"]:
519 options
= "ncalrpc: --option='iconv:use_builtin_handlers=false'"
520 plansmbtorture4testsuite(t
, "none", options
,
521 modname
="samba4.%s.system.iconv" % t
)
523 tdbtorture4
= binpath("tdbtorture")
524 if os
.path
.exists(tdbtorture4
):
525 plantestsuite("tdb.stress", "none", valgrindify(tdbtorture4
))
527 skiptestsuite("tdb.stress", "Using system TDB, tdbtorture not available")
529 plansmbtorture4testsuite("drs.unit", "none", "ncalrpc:")
532 for f
in sorted(os
.listdir(os
.path
.join(samba4srcdir
, "../pidl/tests"))):
533 if f
.endswith(".pl"):
534 planperltestsuite("pidl.%s" % f
[:-3], os
.path
.normpath(os
.path
.join(samba4srcdir
, "../pidl/tests", f
)))
537 plantestsuite_loadlist("samba.tests.dns", "fl2003dc:local", [python
, os
.path
.join(srcdir(), "python/samba/tests/dns.py"), '$SERVER', '$SERVER_IP', '--machine-pass', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
538 plantestsuite_loadlist("samba.tests.dns", "rodc:local", [python
, os
.path
.join(srcdir(), "python/samba/tests/dns.py"), '$SERVER', '$SERVER_IP', '--machine-pass', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
539 plantestsuite_loadlist("samba.tests.dns", "vampire_dc:local", [python
, os
.path
.join(srcdir(), "python/samba/tests/dns.py"), '$SERVER', '$SERVER_IP', '--machine-pass', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
541 plantestsuite_loadlist("samba.tests.dns_aging", "fl2003dc:local",
543 f
"{srcdir()}/python/samba/tests/dns_aging.py",
547 '-U"$USERNAME%$PASSWORD"',
548 '--workgroup=$DOMAIN',
549 '$LOADLIST', '$LISTOPT'])
551 plantestsuite_loadlist("samba.tests.dns_forwarder", "fl2003dc:local", [python
, os
.path
.join(srcdir(), "python/samba/tests/dns_forwarder.py"), '$SERVER', '$SERVER_IP', '$DNS_FORWARDER1', '$DNS_FORWARDER2', '--machine-pass', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
553 plantestsuite_loadlist("samba.tests.dns_tkey", "fl2008r2dc",
554 ['USERNAME_UNPRIV=$DOMAIN_USER','PASSWORD_UNPRIV=$DOMAIN_USER_PASSWORD',
555 python
, os
.path
.join(srcdir(), "python/samba/tests/dns_tkey.py"),
556 '$SERVER', '$SERVER_IP', '--machine-pass', '-U"$USERNAME%$PASSWORD"',
557 '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
558 plantestsuite_loadlist("samba.tests.dns_wildcard", "ad_dc", [python
, os
.path
.join(srcdir(), "python/samba/tests/dns_wildcard.py"), '$SERVER', '$SERVER_IP', '--machine-pass', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
560 plantestsuite_loadlist("samba.tests.dns_invalid", "ad_dc", [python
, os
.path
.join(srcdir(), "python/samba/tests/dns_invalid.py"), '$SERVER_IP', '--machine-pass', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
562 plantestsuite_loadlist("samba.tests.dns_packet",
565 '-msamba.subunit.run',
568 "samba.tests.dns_packet"
571 plantestsuite_loadlist("samba.tests.sddl",
574 '-msamba.subunit.run',
580 plantestsuite_loadlist("samba.tests.sddl_conditional_ace",
583 '-msamba.subunit.run',
586 "samba.tests.sddl_conditional_ace"
589 for t
in smbtorture4_testsuites("dns_internal."):
590 plansmbtorture4testsuite(t
, "ad_dc_default:local", '//$SERVER/whavever')
592 # These tests want to run on a barely changed fresh provision, before
593 # too much happens to this environment, it is read only and local
594 # (direct to the DB) so we use proclimitdc as it is otherwise empty
595 # bar a test for process limits.
596 planpythontestsuite("proclimitdc:local", "samba.tests.dsdb_quiet_provision_tests")
598 # We want this local test to run in an environment where not much is happening that could use root keys
599 planpythontestsuite("chgdcpass:local", "samba.tests.dsdb_quiet_env_tests")
602 for t
in smbtorture4_testsuites("dlz_bind9."):
603 # The dlz_bind9 tests needs to look at the DNS database
604 plansmbtorture4testsuite(t
, "chgdcpass:local", ["ncalrpc:$SERVER", '-U$USERNAME%$PASSWORD'])
606 planpythontestsuite("fileserver_smb1", "samba.tests.libsmb-basic")
608 planpythontestsuite("ad_member", "samba.tests.smb-notify",
609 environ
={'USERNAME':'$DC_USERNAME',
610 'PASSWORD':'$DC_PASSWORD',
611 'USERNAME_UNPRIV':'alice',
612 'PASSWORD_UNPRIV':'Secret007',
613 'STRICT_CHECKING':'0',
614 'NOTIFY_SHARE':'notify_priv'})
617 # tests that interact directly with the command-line tools rather than using
618 # the API. These mainly test that the various command-line options of commands
621 # smbtorture --fullname parameter test
622 plantestsuite("samba4.blackbox.smbtorture_subunit_names", "none",
624 os
.path
.join(bbdir
, "test_smbtorture_test_names.sh"),
628 for env
in ["ad_member", "ad_dc_ntvfs", "chgdcpass"]:
629 plantestsuite("samba4.blackbox.smbclient(%s:local)" % env
, "%s:local" % env
, [os
.path
.join(samba4srcdir
, "utils/tests/test_smbclient.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$DOMAIN', smbclient4
])
631 plantestsuite("samba4.blackbox.samba_tool(ad_dc_default:local)", "ad_dc_default:local", [os
.path
.join(samba4srcdir
, "utils/tests/test_samba_tool.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$DOMAIN', smbclient3
])
632 plantestsuite("samba4.blackbox.net_rpc_user(ad_dc)", "ad_dc", [os
.path
.join(bbdir
, "test_net_rpc_user.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$DOMAIN'])
634 plantestsuite("samba4.blackbox.test_primary_group", "ad_dc:local", [os
.path
.join(bbdir
, "test_primary_group.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$DOMAIN', '$PREFIX_ABS'])
636 plantestsuite("samba4.blackbox.test_alias_membership", "ad_member_idmap_rid:local", [os
.path
.join(bbdir
, "test_alias_membership.sh"), '$PREFIX_ABS'])
638 plantestsuite("samba4.blackbox.test_old_enctypes", "fl2003dc:local", [os
.path
.join(bbdir
, "test_old_enctypes.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$NETBIOSNAME', '$PREFIX_ABS'])
640 planpythontestsuite("ad_dc_default", "samba.tests.blackbox.claims")
642 planpythontestsuite("ad_dc_default", "samba.tests.blackbox.gmsa")
644 if have_heimdal_support
:
645 plantestsuite("samba4.blackbox.kpasswd",
648 os
.path
.join(bbdir
, "test_kpasswd_heimdal.sh"),
657 plantestsuite("samba4.blackbox.krb5.s4u",
660 os
.path
.join(bbdir
, "test_s4u_heimdal.sh"),
675 plantestsuite("samba4.blackbox.kpasswd",
678 os
.path
.join(bbdir
, "test_kpasswd_mit.sh"),
688 plantestsuite("samba4.blackbox.kinit_simple",
691 os
.path
.join(bbdir
, "test_kinit.sh"),
701 plantestsuite("samba4.blackbox.kinit_simple",
704 os
.path
.join(bbdir
, "test_kinit.sh"),
714 plantestsuite("samba4.blackbox.kinit_simple",
717 os
.path
.join(bbdir
, "test_kinit.sh"),
729 plantestsuite("samba4.blackbox.kinit_trust",
732 os
.path
.join(bbdir
, "test_kinit_trusts.sh"),
747 plantestsuite("samba4.blackbox.kinit_trust",
750 os
.path
.join(bbdir
, "test_kinit_trusts.sh"),
765 plantestsuite("samba4.blackbox.kinit_trust",
768 os
.path
.join(bbdir
, "test_kinit_trusts.sh"),
784 plantestsuite("samba4.blackbox.kinit.export.keytab",
787 os
.path
.join(bbdir
, "test_kinit_export_keytab.sh"),
797 plantestsuite("samba4.blackbox.pkinit_simple",
799 [os
.path
.join(bbdir
, "test_pkinit_simple.sh"),
808 plantestsuite("samba4.blackbox.pkinit_pac",
810 [os
.path
.join(bbdir
, "test_pkinit_pac.sh"),
819 plantestsuite("samba.blackbox.client_kerberos", "ad_dc", [os
.path
.join(bbdir
, "test_client_kerberos.sh"), '$DOMAIN', '$REALM', '$USERNAME', '$PASSWORD', '$SERVER', '$PREFIX_ABS', '$SMB_CONF_PATH'])
821 env
="ad_member:local"
822 plantestsuite("samba.blackbox.rpcclient_schannel",
824 [os
.path
.join(bbdir
, "test_rpcclient_schannel.sh"),
833 env
="ad_member_fips:local"
834 plantestsuite("samba.blackbox.rpcclient_schannel",
836 [os
.path
.join(bbdir
, "test_rpcclient_schannel.sh"),
845 environ
={'GNUTLS_FORCE_FIPS_MODE': '1',
846 'OPENSSL_FORCE_FIPS_MODE': '1'})
848 plantestsuite("samba4.blackbox.trust_ntlm", "fl2008r2dc:local", [os
.path
.join(bbdir
, "test_trust_ntlm.sh"), '$SERVER_IP', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$TRUST_USERNAME', '$TRUST_PASSWORD', '$TRUST_REALM', '$TRUST_DOMAIN', 'forest', 'auto', 'NT_STATUS_LOGON_FAILURE'])
849 plantestsuite("samba4.blackbox.trust_ntlm", "fl2003dc:local", [os
.path
.join(bbdir
, "test_trust_ntlm.sh"), '$SERVER_IP', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$TRUST_USERNAME', '$TRUST_PASSWORD', '$TRUST_REALM', '$TRUST_DOMAIN', 'external', 'auto', 'NT_STATUS_LOGON_FAILURE'])
850 plantestsuite("samba4.blackbox.trust_ntlm", "fl2000dc:local", [os
.path
.join(bbdir
, "test_trust_ntlm.sh"), '$SERVER_IP', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$TRUST_USERNAME', '$TRUST_PASSWORD', '$TRUST_REALM', '$TRUST_DOMAIN', 'external', 'auto', 'NT_STATUS_LOGON_FAILURE'])
851 plantestsuite("samba4.blackbox.trust_ntlm", "ad_member:local", [os
.path
.join(bbdir
, "test_trust_ntlm.sh"), '$SERVER_IP', '$USERNAME', '$PASSWORD', '$SERVER', '$SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$REALM', '$DOMAIN', 'member', 'auto', 'NT_STATUS_LOGON_FAILURE'])
852 plantestsuite("samba4.blackbox.trust_ntlm", "nt4_member:local", [os
.path
.join(bbdir
, "test_trust_ntlm.sh"), '$SERVER_IP', '$USERNAME', '$PASSWORD', '$SERVER', '$SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$DOMAIN', '$DOMAIN', 'member', 'auto', 'NT_STATUS_LOGON_FAILURE'])
854 plantestsuite("samba4.blackbox.ldap_token", "fl2008r2dc:local", [os
.path
.join(bbdir
, "test_ldap_token.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$DOMSID'])
855 plantestsuite("samba4.blackbox.ldap_token", "fl2003dc:local", [os
.path
.join(bbdir
, "test_ldap_token.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$DOMSID'])
856 plantestsuite("samba4.blackbox.ldap_token", "fl2000dc:local", [os
.path
.join(bbdir
, "test_ldap_token.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$DOMSID'])
857 plantestsuite("samba4.blackbox.ldap_token", "ad_member:local", [os
.path
.join(bbdir
, "test_ldap_token.sh"), '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$REALM', '$DOMAIN', '$DOMSID'])
859 plantestsuite("samba4.blackbox.trust_utils(fl2008r2dc:local)", "fl2008r2dc:local", [os
.path
.join(bbdir
, "test_trust_utils.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$TRUST_SERVER', '$TRUST_USERNAME', '$TRUST_PASSWORD', '$TRUST_REALM', '$TRUST_DOMAIN', '$PREFIX', "forest"])
860 plantestsuite("samba4.blackbox.trust_utils(fl2003dc:local)", "fl2003dc:local", [os
.path
.join(bbdir
, "test_trust_utils.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$TRUST_SERVER', '$TRUST_USERNAME', '$TRUST_PASSWORD', '$TRUST_REALM', '$TRUST_DOMAIN', '$PREFIX', "external"])
861 plantestsuite("samba4.blackbox.trust_utils(fl2000dc:local)", "fl2000dc:local", [os
.path
.join(bbdir
, "test_trust_utils.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$TRUST_SERVER', '$TRUST_USERNAME', '$TRUST_PASSWORD', '$TRUST_REALM', '$TRUST_DOMAIN', '$PREFIX', "external"])
862 plantestsuite("samba4.blackbox.trust_token", "fl2008r2dc", [os
.path
.join(bbdir
, "test_trust_token.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$DOMSID', '$TRUST_USERNAME', '$TRUST_PASSWORD', '$TRUST_REALM', '$TRUST_DOMAIN', '$TRUST_DOMSID', 'forest'])
863 plantestsuite("samba4.blackbox.trust_token", "fl2003dc", [os
.path
.join(bbdir
, "test_trust_token.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$DOMSID', '$TRUST_USERNAME', '$TRUST_PASSWORD', '$TRUST_REALM', '$TRUST_DOMAIN', '$TRUST_DOMSID', 'external'])
864 plantestsuite("samba4.blackbox.trust_token", "fl2000dc", [os
.path
.join(bbdir
, "test_trust_token.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$DOMSID', '$TRUST_USERNAME', '$TRUST_PASSWORD', '$TRUST_REALM', '$TRUST_DOMAIN', '$TRUST_DOMSID', 'external'])
865 plantestsuite("samba4.blackbox.ktpass(ad_dc_ntvfs)", "ad_dc_ntvfs", [os
.path
.join(bbdir
, "test_ktpass.sh"), '$PREFIX/ad_dc_ntvfs'])
866 plantestsuite("samba4.blackbox.password_settings",
869 os
.path
.join(bbdir
, "test_password_settings.sh"),
878 plantestsuite("samba4.blackbox.trust_user_account", "fl2008r2dc:local", [os
.path
.join(bbdir
, "test_trust_user_account.sh"), '$PREFIX', '$REALM', '$DOMAIN', '$TRUST_REALM', '$TRUST_DOMAIN'])
879 plantestsuite("samba4.blackbox.cifsdd(ad_dc_ntvfs)", "ad_dc_ntvfs", [os
.path
.join(samba4srcdir
, "client/tests/test_cifsdd.sh"), '$SERVER', '$USERNAME', '$PASSWORD', "$DOMAIN"])
880 plantestsuite("samba4.blackbox.nmblookup(ad_dc_ntvfs)", "ad_dc_ntvfs", [os
.path
.join(samba4srcdir
, "utils/tests/test_nmblookup.sh"), '$NETBIOSNAME', '$NETBIOSALIAS', '$SERVER', '$SERVER_IP', nmblookup4
])
881 plantestsuite("samba4.blackbox.locktest(ad_dc_ntvfs)", "ad_dc_ntvfs", [os
.path
.join(samba4srcdir
, "torture/tests/test_locktest.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$DOMAIN', '$PREFIX'])
882 plantestsuite("samba4.blackbox.masktest", "ad_dc_ntvfs", [os
.path
.join(samba4srcdir
, "torture/tests/test_masktest.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$DOMAIN', '$PREFIX'])
883 plantestsuite("samba4.blackbox.gentest(ad_dc_ntvfs)", "ad_dc_ntvfs", [os
.path
.join(samba4srcdir
, "torture/tests/test_gentest.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$DOMAIN', "$PREFIX"])
884 plantestsuite("samba4.blackbox.rfc2307_mapping",
887 os
.path
.join(samba4srcdir
,
888 "../nsswitch/tests/test_rfc2307_mapping.sh"),
897 plantestsuite("samba4.blackbox.chgdcpass", "chgdcpass", [os
.path
.join(bbdir
, "test_chgdcpass.sh"), '$SERVER', r
"CHGDCPASS\$", '$REALM', '$DOMAIN', '$PREFIX/chgdcpass', "aes256-cts-hmac-sha1-96", '$PREFIX/chgdcpass', smbclient3
])
898 plantestsuite("samba4.blackbox.samba_upgradedns(chgdcpass:local)", "chgdcpass:local", [os
.path
.join(bbdir
, "test_samba_upgradedns.sh"), '$SERVER', '$REALM', '$PREFIX', '$SELFTEST_PREFIX/chgdcpass'])
899 plantestsuite("samba4.blackbox.net_ads", "ad_dc:client", [os
.path
.join(bbdir
, "test_net_ads.sh"), '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$PREFIX_ABS'])
900 plantestsuite("samba4.blackbox.net_offlinejoin", "ad_dc:client", [os
.path
.join(bbdir
, "test_net_offline.sh"), '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$PREFIX_ABS'])
901 plantestsuite("samba4.blackbox.client_etypes_all(ad_dc:client)", "ad_dc:client", [os
.path
.join(bbdir
, "test_client_etypes.sh"), '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$PREFIX_ABS', 'all', '17_18_23'])
902 plantestsuite("samba4.blackbox.client_etypes_legacy(ad_dc:client)", "ad_dc:client", [os
.path
.join(bbdir
, "test_client_etypes.sh"), '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$PREFIX_ABS', 'legacy', '23'])
903 plantestsuite("samba4.blackbox.client_etypes_strong(ad_dc:client)", "ad_dc:client", [os
.path
.join(bbdir
, "test_client_etypes.sh"), '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$PREFIX_ABS', 'strong', '17_18'])
904 plantestsuite("samba4.blackbox.net_ads_dns(ad_member:local)", "ad_member:local", [os
.path
.join(bbdir
, "test_net_ads_dns.sh"), '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$REALM', '$USERNAME', '$PASSWORD'])
905 plantestsuite("samba4.blackbox.samba-tool_ntacl(ad_member:local)", "ad_member:local", [os
.path
.join(bbdir
, "test_samba-tool_ntacl.sh"), '$PREFIX', '$DOMSID', configuration
])
907 env
= "ad_member:local"
908 plantestsuite("samba4.blackbox.net_ads_search_server_P.primary", env
,
909 [os
.path
.join(bbdir
, "test_net_ads_search_server.sh"),
910 '$DC_SERVER', '$REALM'])
911 plantestsuite("samba4.blackbox.net_ads_search_server_P.trust_e_both", env
,
912 [os
.path
.join(bbdir
, "test_net_ads_search_server.sh"),
913 '$TRUST_E_BOTH_SERVER', '$TRUST_E_BOTH_REALM'])
914 plantestsuite("samba4.blackbox.net_ads_search_server_P.trust_f_both", env
,
915 [os
.path
.join(bbdir
, "test_net_ads_search_server.sh"),
916 '$TRUST_F_BOTH_SERVER', '$TRUST_F_BOTH_REALM'])
918 if have_gnutls_fips_mode_support
:
919 plantestsuite("samba4.blackbox.weak_crypto.client", "ad_dc", [os
.path
.join(bbdir
, "test_weak_crypto.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', "$PREFIX/ad_dc"])
920 plantestsuite("samba4.blackbox.test_weak_disable_ntlmssp_ldap", "ad_member:local", [os
.path
.join(bbdir
, "test_weak_disable_ntlmssp_ldap.sh"),'$DC_USERNAME', '$DC_PASSWORD'])
922 for env
in ["ad_dc_fips", "ad_member_fips"]:
923 plantestsuite("samba4.blackbox.weak_crypto.server",
925 [os
.path
.join(bbdir
, "test_weak_crypto_server.sh"),
931 "$PREFIX/ad_dc_fips",
933 environ
={'GNUTLS_FORCE_FIPS_MODE': '1',
934 'OPENSSL_FORCE_FIPS_MODE': '1'})
936 plantestsuite("samba4.blackbox.net_ads_fips",
938 [os
.path
.join(bbdir
, "test_net_ads_fips.sh"),
943 environ
={'GNUTLS_FORCE_FIPS_MODE': '1',
944 'OPENSSL_FORCE_FIPS_MODE': '1'})
946 t
= "--krb5auth=$DOMAIN/$DC_USERNAME%$DC_PASSWORD"
947 plantestsuite("samba3.wbinfo_simple.fips.%s" % t
,
948 "ad_member_fips:local",
949 [os
.path
.join(srcdir(), "nsswitch/tests/test_wbinfo_simple.sh"), t
],
950 environ
={'GNUTLS_FORCE_FIPS_MODE': '1',
951 'OPENSSL_FORCE_FIPS_MODE': '1'})
952 plantestsuite("samba4.wbinfo_name_lookup.fips",
954 [os
.path
.join(srcdir(), "nsswitch/tests/test_wbinfo_name_lookup.sh"),
958 environ
={'GNUTLS_FORCE_FIPS_MODE': '1',
959 'OPENSSL_FORCE_FIPS_MODE': '1'})
961 plansmbtorture4testsuite('rpc.fips.netlogon.crypto',
963 ['ncacn_np:$SERVER[krb5]',
964 '-U$USERNAME%$PASSWORD',
965 '--workgroup=$DOMAIN',
966 '--client-protection=encrypt'],
967 'samba4.rpc.fips.netlogon.crypto',
968 environ
={'GNUTLS_FORCE_FIPS_MODE': '1',
969 'OPENSSL_FORCE_FIPS_MODE': '1'})
971 plansmbtorture4testsuite('rpc.echo', "ad_dc_ntvfs", ['ncacn_np:$NETBIOSALIAS', '-U$DOMAIN/$USERNAME%$PASSWORD'], "samba4.rpc.echo against NetBIOS alias")
973 # Test wbinfo trust auth
974 for env
in ["ad_member_oneway:local", "fl2000dc:local", "fl2003dc:local", "fl2008r2dc:local"]:
975 for t
in ["--krb5auth=$TRUST_REALM/$TRUST_USERNAME%$TRUST_PASSWORD",
976 "--krb5auth=$TRUST_DOMAIN/$TRUST_USERNAME%$TRUST_PASSWORD",
977 "--authenticate=$TRUST_REALM/$TRUST_USERNAME%$TRUST_PASSWORD",
978 "--authenticate=$TRUST_DOMAIN/$TRUST_USERNAME%$TRUST_PASSWORD"]:
979 plantestsuite("samba3.wbinfo_simple.trust:%s" % t
, env
, [os
.path
.join(srcdir(), "nsswitch/tests/test_wbinfo_simple.sh"), t
])
981 # json tests hook into ``chgdcpass'' to make them run in contributor CI on
983 planpythontestsuite("chgdcpass", "samba.tests.blackbox.netads_json")
985 # Tests using the "Simple" NTVFS backend
986 for t
in ["base.rw1"]:
987 plansmbtorture4testsuite(t
, "ad_dc_ntvfs", ["//$SERVER/simple", '-U$USERNAME%$PASSWORD'], modname
="samba4.ntvfs.simple.%s" % t
)
989 # Domain S4member Tests
990 plansmbtorture4testsuite('rpc.echo', "s4member", ['ncacn_np:$NETBIOSNAME', '-U$NETBIOSNAME/$USERNAME%$PASSWORD'], "samba4.rpc.echo against s4member server with local creds")
991 plansmbtorture4testsuite('rpc.echo', "s4member", ['ncacn_np:$NETBIOSNAME', '-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'], "samba4.rpc.echo against s4member server with domain creds")
992 plansmbtorture4testsuite('rpc.samr', "s4member", ['ncacn_np:$NETBIOSNAME', '-U$NETBIOSNAME/$USERNAME%$PASSWORD'], "samba4.rpc.samr against s4member server with local creds")
993 plansmbtorture4testsuite('rpc.samr.users', "s4member", ['ncacn_np:$NETBIOSNAME', '-U$NETBIOSNAME/$USERNAME%$PASSWORD'], "samba4.rpc.samr.users against s4member server with local creds",)
994 plansmbtorture4testsuite('rpc.samr.passwords.default',
996 ['ncacn_np:$NETBIOSNAME',
997 '-U$NETBIOSNAME/$USERNAME%$PASSWORD'],
998 "samba4.rpc.samr.passwords.default against s4member server with local creds")
999 plantestsuite("samba4.blackbox.smbclient against s4member server with local creds", "s4member", [os
.path
.join(samba4srcdir
, "client/tests/test_smbclient.sh"), '$NETBIOSNAME', '$USERNAME', '$PASSWORD', '$NETBIOSNAME', '$PREFIX', smbclient4
])
1002 plansmbtorture4testsuite("rpc.echo", "rpc_proxy", ['ncacn_ip_tcp:$NETBIOSNAME', '-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'], modname
="samba4.rpc.echo against rpc proxy with domain creds")
1007 "-k no --option=clientusespnego=no",
1008 "-k no --option=gensec:spengo=no",
1010 "-k yes --option=gensec:fake_gssapi_krb5=yes --option=gensec:gssapi_krb5=no"]:
1011 for signing
in ["--option=clientsigning=desired", "--option=clientsigning=required"]:
1012 signoptions
= "%s %s" % (mech
, signing
)
1013 name
= "smb.signing on with %s" % signoptions
1014 plansmbtorture4testsuite('base.xcopy', "ad_dc_ntvfs", ['//$NETBIOSNAME/xcopy_share', signoptions
, '-U$USERNAME%$PASSWORD'], modname
="samba4.%s" % name
)
1018 "-k no --option=clientusespnego=no",
1019 "-k no --option=gensec:spengo=no",
1021 signoptions
= "%s --client-protection=off" % mech
1022 name
= "smb.signing disabled on with %s" % signoptions
1023 plansmbtorture4testsuite('base.xcopy', "ad_member", ['//$NETBIOSNAME/xcopy_share', signoptions
, '-U$DC_USERNAME%$DC_PASSWORD'], "samba4.%s domain-creds" % name
)
1024 plansmbtorture4testsuite('base.xcopy', "ad_dc", ['//$NETBIOSNAME/xcopy_share', signoptions
, '-U$USERNAME%$PASSWORD'], "samba4.%s" % name
)
1025 plansmbtorture4testsuite('base.xcopy', "ad_dc",
1026 ['//$NETBIOSNAME/xcopy_share', signoptions
, '-U$DC_USERNAME%$DC_PASSWORD'], "samba4.%s administrator" % name
)
1028 plantestsuite("samba4.blackbox.bogusdomain", "ad_member", ["testprogs/blackbox/bogus.sh", "$NETBIOSNAME", "xcopy_share", '$USERNAME', '$PASSWORD', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
])
1031 "-k no --option=clientusespnego=no",
1032 "-k no --option=gensec:spengo=no"]:
1033 signoptions
= "%s --client-protection=off" % mech
1034 plansmbtorture4testsuite('base.xcopy', "s4member", ['//$NETBIOSNAME/xcopy_share', signoptions
, '-U$NETBIOSNAME/$USERNAME%$PASSWORD'], modname
="samba4.smb.signing on with %s local-creds" % signoptions
)
1036 plansmbtorture4testsuite('base.xcopy', "ad_dc_ntvfs", ['//$NETBIOSNAME/xcopy_share', '-k', 'no', '--option=clientsigning=desired', '-U%'], modname
="samba4.smb.signing --option=clientsigning=desired anon")
1037 plansmbtorture4testsuite('base.xcopy', "ad_dc_ntvfs", ['//$NETBIOSNAME/xcopy_share', '-k', 'no', '--option=clientsigning=required', '-U%'], modname
="samba4.smb.signing --option=clientsigning=required anon")
1038 plansmbtorture4testsuite('base.xcopy', "s4member", ['//$NETBIOSNAME/xcopy_share', '-k', 'no', '--option=clientsigning=disabled', '-U%'], modname
="samba4.smb.signing --option=clientsigning=disabled anon")
1040 # Test SPNEGO without issuing an optimistic token
1041 opt
='--option=spnego:client_no_optimistic=yes'
1042 plansmbtorture4testsuite('base.xcopy', "ad_dc_smb1", ['//$NETBIOSNAME/xcopy_share', '-U$USERNAME%$PASSWORD', opt
, '-k', 'no'], modname
="samba4.smb.spnego.ntlmssp.no_optimistic")
1043 plansmbtorture4testsuite('base.xcopy', "ad_dc_smb1", ['//$NETBIOSNAME/xcopy_share', '-U$USERNAME%$PASSWORD', opt
, '-k', 'yes'], modname
="samba4.smb.spnego.krb5.no_optimistic")
1045 wb_opts_default
= ["--option=\"torture:strict mode=no\"", "--option=\"torture:timelimit=1\"", "--option=\"torture:winbindd_separator=/\"", "--option=\"torture:winbindd_netbios_name=$SERVER\"", "--option=\"torture:winbindd_netbios_domain=$DOMAIN\""]
1047 winbind_ad_client_tests
= smbtorture4_testsuites("winbind.struct") + smbtorture4_testsuites("winbind.pac")
1048 winbind_wbclient_tests
= smbtorture4_testsuites("winbind.wbclient")
1049 for env
in ["ad_dc", "ad_member", "nt4_member"]:
1050 wb_opts
= wb_opts_default
[:]
1051 if env
in ["ad_member"]:
1052 wb_opts
+= ["--option=\"torture:winbindd_domain_without_prefix=$DOMAIN\""]
1053 for t
in winbind_ad_client_tests
:
1054 plansmbtorture4testsuite(t
, "%s:local" % env
, wb_opts
+ ['//$SERVER/tmp', '--realm=$REALM', '--machine-pass', '--option=torture:addc=$DC_SERVER'])
1056 for env
in ["nt4_dc", "fl2003dc"]:
1057 for t
in winbind_wbclient_tests
:
1058 plansmbtorture4testsuite(t
, "%s:local" % env
, '//$SERVER/tmp -U$DC_USERNAME%$DC_PASSWORD')
1060 for env
in ["nt4_dc", "nt4_member", "ad_dc", "ad_member", "chgdcpass", "rodc"]:
1061 tests
= ["--ping", "--separator",
1064 "--trusted-domains",
1065 "--domain-info=BUILTIN",
1066 "--domain-info=$DOMAIN",
1068 "--online-status --domain=BUILTIN",
1069 "--online-status --domain=$DOMAIN",
1070 "--check-secret --domain=$DOMAIN",
1071 "--change-secret --domain=$DOMAIN",
1072 "--check-secret --domain=$DOMAIN",
1073 "--online-status --domain=$DOMAIN",
1076 "--name-to-sid=$DC_USERNAME",
1077 "--name-to-sid=$DOMAIN/$DC_USERNAME",
1078 "--user-info=$DOMAIN/$DC_USERNAME",
1079 "--user-groups=$DOMAIN/$DC_USERNAME",
1080 "--authenticate=$DOMAIN/$DC_USERNAME%$DC_PASSWORD",
1085 plantestsuite("samba.wbinfo_simple.%s" % (t
.replace(" --", ".").replace("--", "")), "%s:local" % env
, [os
.path
.join(srcdir(), "nsswitch/tests/test_wbinfo_simple.sh"), t
])
1088 "samba.wbinfo_sids2xids.(%s:local)" % env
, "%s:local" % env
,
1089 [os
.path
.join(samba3srcdir
, "script/tests/test_wbinfo_sids2xids.sh")])
1091 planpythontestsuite(env
+ ":local", "samba.tests.ntlm_auth")
1094 "samba.wbinfo_u_large_ad.(ad_dc:local)",
1096 [os
.path
.join(samba3srcdir
, "script/tests/test_wbinfo_u_large_ad.sh")])
1098 for env
in ["ktest"]:
1099 planpythontestsuite(env
+ ":local", "samba.tests.ntlm_auth_krb5")
1101 for env
in ["s4member_dflt_domain", "s4member"]:
1102 for cmd
in ["id", "getent"]:
1103 users
= ["$DC_USERNAME", "$DC_USERNAME@$REALM"]
1104 if env
== "s4member":
1105 users
= ["$DOMAIN/$DC_USERNAME", "$DC_USERNAME@$REALM"]
1107 plantestsuite("samba4.winbind.dom_name_parse.cmd", env
, "%s/dom_parse.sh %s %s" % (bbdir
, cmd
, usr
))
1109 nsstest4
= binpath("nsstest")
1110 for env
in ["ad_dc:local", "s4member:local", "nt4_dc:local", "ad_member:local", "nt4_member:local"]:
1111 if os
.path
.exists(nsstest4
):
1112 plantestsuite("samba.nss.test using winbind(%s)" % env
, env
, [os
.path
.join(bbdir
, "nsstest.sh"), nsstest4
, os
.path
.join(samba4bindir
, "plugins/libnss_wrapper_winbind.so.2")])
1114 skiptestsuite("samba.nss.test using winbind(%s)" % env
, "nsstest not available")
1117 if have_gnutls_fips_mode_support
:
1118 planoldpythontestsuite("ad_dc",
1119 "samba.tests.dcerpc.lsa_utils",
1120 environ
={'GNUTLS_FORCE_FIPS_MODE': '1',
1121 'OPENSSL_FORCE_FIPS_MODE': '1'})
1122 planoldpythontestsuite("ad_dc_fips",
1123 "samba.tests.dcerpc.lsa_utils",
1124 environ
={'GNUTLS_FORCE_FIPS_MODE': '1',
1125 'OPENSSL_FORCE_FIPS_MODE': '1'})
1127 # Run complex search expressions test once for each database backend.
1128 # Right now ad_dc has mdb and ad_dc_ntvfs has tdb
1129 mdb_testenv
= "ad_dc"
1130 tdb_testenv
= "ad_dc_ntvfs"
1131 for testenv
in [mdb_testenv
, tdb_testenv
]:
1132 planoldpythontestsuite(testenv
, "samba.tests.complex_expressions", extra_args
=['-U"$USERNAME%$PASSWORD"'])
1134 # samba.tests.gensec is only run in ad_dc to ensure it runs with and
1135 # MIT and Heimdal build, it can run against any environment that
1137 planoldpythontestsuite("ad_dc:local", "samba.tests.gensec", extra_args
=['-U"$USERNAME%$PASSWORD"'])
1139 planoldpythontestsuite("none", "simple", extra_path
=["%s/lib/tdb/python/tests" % srcdir()], name
="tdb.python")
1140 planpythontestsuite("ad_dc_default:local", "samba.tests.dcerpc.sam")
1141 planpythontestsuite("ad_dc_default:local", "samba.tests.dsdb")
1142 planpythontestsuite("none", "samba.tests.samba_startup_fl_change")
1143 planpythontestsuite("none", "samba.tests.dsdb_lock")
1144 planpythontestsuite("ad_dc_default:local", "samba.tests.dcerpc.bare")
1145 planpythontestsuite("ad_dc_default:local", "samba.tests.dcerpc.lsa")
1146 planpythontestsuite("ad_dc_default:local", "samba.tests.dcerpc.unix")
1147 planpythontestsuite("ad_dc_ntvfs:local", "samba.tests.dcerpc.srvsvc")
1148 planpythontestsuite("ad_dc_default:local", "samba.tests.samba_tool.timecmd")
1149 planpythontestsuite("ad_dc_default:local", "samba.tests.samba_tool.join")
1150 planpythontestsuite("ad_dc_default:local", "samba.tests.ldap_whoami")
1151 planpythontestsuite("ad_member_s3_join", "samba.tests.samba_tool.join_member")
1152 planpythontestsuite("ad_dc_default",
1153 "samba.tests.samba_tool.join_lmdb_size")
1154 planpythontestsuite("ad_dc_default",
1155 "samba.tests.samba_tool.drs_clone_dc_data_lmdb_size")
1156 planpythontestsuite("ad_dc_default",
1157 "samba.tests.samba_tool.promote_dc_lmdb_size")
1159 planpythontestsuite("none", "samba.tests.samba_tool.visualize")
1163 for env
in all_fl_envs
:
1164 planpythontestsuite(env
+ ":local", "samba.tests.samba_tool.fsmo")
1166 # test getpassword for group managed service accounts
1167 planpythontestsuite("ad_dc_default", "samba.tests.samba_tool.user_getpassword_gmsa")
1169 # test samba-tool user, group, contact and computer edit command
1170 for env
in all_fl_envs
:
1172 plantestsuite("samba.tests.samba_tool.user_edit", env
, [os
.path
.join(srcdir(), "python/samba/tests/samba_tool/user_edit.sh"), '$SERVER', '$USERNAME', '$PASSWORD'])
1173 plantestsuite("samba.tests.samba_tool.group_edit", env
, [os
.path
.join(srcdir(), "python/samba/tests/samba_tool/group_edit.sh"), '$SERVER', '$USERNAME', '$PASSWORD'])
1174 plantestsuite("samba.tests.samba_tool.contact_edit", env
, [os
.path
.join(srcdir(), "python/samba/tests/samba_tool/contact_edit.sh"), '$SERVER', '$USERNAME', '$PASSWORD'])
1175 plantestsuite("samba.tests.samba_tool.computer_edit", env
, [os
.path
.join(srcdir(), "python/samba/tests/samba_tool/computer_edit.sh"), '$SERVER', '$USERNAME', '$PASSWORD'])
1177 # We run this test against both AD DC implementations because it is
1178 # the only test we have of GPO get/set behaviour, and this involves
1179 # the file server as well as the LDAP server.
1180 # It's also a good sanity-check that sysvol backup worked correctly.
1181 for env
in ["ad_dc_ntvfs", "ad_dc", "offlinebackupdc", "renamedc",
1182 smbv1_disabled_testenv
]:
1183 planpythontestsuite(env
+ ":local", "samba.tests.samba_tool.gpo")
1184 for env
in ["ad_dc_ntvfs", "ad_dc"]:
1185 planpythontestsuite(env
+ ":local", "samba.tests.samba_tool.gpo_exts")
1187 planpythontestsuite("ad_dc_default:local", "samba.tests.samba_tool.processes")
1189 planpythontestsuite("ad_dc_ntvfs:local", "samba.tests.samba_tool.user")
1190 planpythontestsuite("ad_dc_default", "samba.tests.samba_tool.user_auth_policy")
1191 planpythontestsuite("ad_dc_default", "samba.tests.samba_tool.user_auth_silo")
1192 for env
in ["ad_dc_default:local", "ad_dc_no_ntlm:local"]:
1193 planpythontestsuite(env
, "samba.tests.samba_tool.user_wdigest")
1194 for env
, nt_hash
in [("ad_dc:local", True),
1195 ("ad_dc_no_ntlm:local", False)]:
1196 planpythontestsuite(env
, "samba.tests.samba_tool.user",
1197 environ
={"EXPECT_NT_HASH": int(nt_hash
)})
1198 # test get-kerberos-ticket for locally accessible and group managed service accounts
1199 planpythontestsuite(env
, "samba.tests.samba_tool.user_get_kerberos_ticket")
1200 planpythontestsuite(env
, "samba.tests.samba_tool.user_virtualCryptSHA_userPassword")
1201 planpythontestsuite(env
, "samba.tests.samba_tool.user_virtualCryptSHA_gpg")
1202 planpythontestsuite("chgdcpass:local", "samba.tests.samba_tool.user_check_password_script")
1204 planpythontestsuite("ad_dc_default:local", "samba.tests.samba_tool.group")
1205 planpythontestsuite("ad_dc_default:local", "samba.tests.samba_tool.ou")
1206 planpythontestsuite("ad_dc_default:local", "samba.tests.samba_tool.computer")
1207 planpythontestsuite("ad_dc_default:local", "samba.tests.samba_tool.contact")
1208 planpythontestsuite("ad_dc_default:local", "samba.tests.samba_tool.forest")
1209 planpythontestsuite("ad_dc_default:local", "samba.tests.samba_tool.schema")
1210 planpythontestsuite("ad_dc_default", "samba.tests.samba_tool.domain_claim")
1211 planpythontestsuite("ad_dc_default", "samba.tests.samba_tool.domain_auth_policy")
1212 planpythontestsuite("ad_dc_default", "samba.tests.samba_tool.domain_auth_silo")
1214 # This test needs to be run in an environment well apart from most
1215 # other tests as it deletes root keys and we don't want this to happen
1216 # where a gMSA account might be live.
1217 planpythontestsuite("chgdcpass", "samba.tests.samba_tool.domain_kds_root_key")
1219 planpythontestsuite("ad_dc_default", "samba.tests.samba_tool.domain_models")
1220 planpythontestsuite("ad_dc_default", "samba.tests.samba_tool.service_account")
1221 planpythontestsuite("schema_dc:local", "samba.tests.samba_tool.schema")
1222 planpythontestsuite("ad_dc:local", "samba.tests.samba_tool.ntacl")
1223 planpythontestsuite("none", "samba.tests.samba_tool.provision_password_check")
1224 planpythontestsuite("none", "samba.tests.samba_tool.provision_lmdb_size")
1225 planpythontestsuite("none", "samba.tests.samba_tool.provision_userPassword_crypt")
1226 planpythontestsuite("none", "samba.tests.samba_tool.help")
1227 # Make sure samba-tool can execute without import failures when run
1228 # without the ad-dc built. The fileserver test environment runs against
1229 # the samba-h5l-build autobuild. This build was chosen because it's
1230 # configured with --without-ad-dc and does not disable ads, which is
1231 # required to run some samba-tool commands.
1232 planpythontestsuite("fileserver", "samba.tests.samba_tool.help")
1234 planpythontestsuite("ad_dc_default:local", "samba.tests.samba_tool.passwordsettings")
1235 planpythontestsuite("ad_dc:local", "samba.tests.samba_tool.dsacl")
1237 planpythontestsuite("none", "samba.tests.samba_upgradedns_lmdb")
1239 # Run these against chgdcpass to share the runtime load
1240 planpythontestsuite("chgdcpass:local", "samba.tests.samba_tool.sites")
1241 planpythontestsuite("chgdcpass:local", "samba.tests.samba_tool.dnscmd")
1243 # Run this against chgdcpass to ensure at least one python3 test
1244 # against this autobuild target (samba-ad-dc-2)
1245 planpythontestsuite("chgdcpass:local", "samba.tests.dcerpc.rpcecho")
1247 planoldpythontestsuite("nt4_dc", "samba.tests.netbios", extra_args
=['-U"$USERNAME%$PASSWORD"'])
1248 test_bin
= os
.path
.abspath(os
.path
.join(os
.getenv('BINDIR', './bin'), '../python/samba/tests/bin'))
1249 planoldpythontestsuite("ad_dc:local", "samba.tests.gpo", extra_args
=['-U"$USERNAME%$PASSWORD"'],
1250 environ
={'PATH':':'.join([test_bin
, os
.getenv('PATH', '')])})
1251 planoldpythontestsuite("ad_member", "samba.tests.gpo_member", extra_args
=['-U"$USERNAME%$PASSWORD"'])
1252 planoldpythontestsuite("ad_dc:local", "samba.tests.dckeytab", extra_args
=['-U"$USERNAME%$PASSWORD"'])
1254 planoldpythontestsuite("ad_dc", "samba.tests.sid_strings")
1256 # Run the import test in environments that may not have the ad-dc built
1257 envs
= ['fileserver_smb1', 'nt4_member', 'ktest', 'nt4_dc', 'nt4_dc_smb1_done', 'nt4_dc_smb1', 'simpleserver', 'fileserver_smb1_done', 'fileserver', 'maptoguest', 'nt4_dc_schannel']
1258 if have_cluster_support
:
1259 envs
.append('clusteredmember')
1261 planoldpythontestsuite(env
, "samba.tests.imports")
1263 have_fast_support
= 1
1267 kadmin_is_tgs
= int('SAMBA4_USES_HEIMDAL' not in config_hash
)
1270 compound_id_support
= int('SAMBA4_USES_HEIMDAL' in config_hash
)
1271 expect_pac
= int('SAMBA4_USES_HEIMDAL' in config_hash
)
1272 extra_pac_buffers
= int('SAMBA4_USES_HEIMDAL' in config_hash
)
1273 check_cname
= int('SAMBA4_USES_HEIMDAL' in config_hash
)
1274 check_padata
= int('SAMBA4_USES_HEIMDAL' in config_hash
)
1275 expect_nt_status
= int('SAMBA4_USES_HEIMDAL' in config_hash
)
1276 as_req_logging_support
= int('SAMBA4_USES_HEIMDAL' in config_hash
)
1277 tgs_req_logging_support
= int('SAMBA4_USES_HEIMDAL' in config_hash
)
1279 ca_dir
= os
.path
.join('selftest', 'manage-ca', 'CA-samba.example.com')
1281 # This certificate is currently used just to get the name of the certificate
1283 ca_cert_path
= os
.path
.join(ca_dir
,
1285 'addc.addom.samba.example.com',
1286 'DC-addc.addom.samba.example.com-cert.pem')
1288 # The private key is used to issue new certificates.
1289 ca_private_key_path
= os
.path
.join(ca_dir
,
1291 'CA-samba.example.com-private-key.pem')
1295 'SERVICE_USERNAME': '$SERVER',
1296 'ADMIN_USERNAME': '$DC_USERNAME',
1297 'ADMIN_PASSWORD': '$DC_PASSWORD',
1299 'FOR_USER': '$DC_USERNAME',
1300 'STRICT_CHECKING':'0',
1301 'FAST_SUPPORT': have_fast_support
,
1302 'CLAIMS_SUPPORT': claims_support
,
1303 'COMPOUND_ID_SUPPORT': compound_id_support
,
1304 'EXPECT_PAC': expect_pac
,
1305 'EXPECT_EXTRA_PAC_BUFFERS': extra_pac_buffers
,
1306 'CHECK_CNAME': check_cname
,
1307 'CHECK_PADATA': check_padata
,
1308 'KADMIN_IS_TGS': kadmin_is_tgs
,
1309 'EXPECT_NT_STATUS': expect_nt_status
,
1310 'AS_REQ_LOGGING_SUPPORT': as_req_logging_support
,
1311 'TGS_REQ_LOGGING_SUPPORT': tgs_req_logging_support
,
1312 'CA_CERT': ca_cert_path
,
1313 'CA_PRIVATE_KEY': ca_private_key_path
,
1316 planoldpythontestsuite("none", "samba.tests.krb5.kcrypto")
1317 planoldpythontestsuite("none", "samba.tests.krb5.claims_in_pac")
1318 planoldpythontestsuite("ad_dc_default", "samba.tests.krb5.simple_tests",
1319 environ
=krb5_environ
)
1320 for env
, fast_support
in [("ad_dc_default:local", True),
1321 ("fl2003dc:local", False)]:
1322 planoldpythontestsuite(env
, "samba.tests.krb5.s4u_tests",
1325 'FAST_SUPPORT': int(have_fast_support
and fast_support
),
1327 planoldpythontestsuite("rodc:local", "samba.tests.krb5.rodc_tests",
1328 environ
=krb5_environ
)
1330 planoldpythontestsuite("ad_dc_default", "samba.tests.dsdb_dns")
1332 planoldpythontestsuite("fl2008r2dc:local", "samba.tests.krb5.xrealm_tests",
1333 environ
=krb5_environ
)
1335 planoldpythontestsuite("ad_dc_default", "samba.tests.krb5.test_ccache",
1336 environ
=krb5_environ
)
1337 planoldpythontestsuite("ad_dc_default", "samba.tests.krb5.test_ldap",
1338 environ
=krb5_environ
)
1339 for env
in ['ad_dc_default', 'ad_member']:
1340 planoldpythontestsuite(env
, "samba.tests.krb5.test_rpc",
1341 environ
=krb5_environ
)
1342 planoldpythontestsuite("ad_dc_smb1", "samba.tests.krb5.test_smb",
1343 environ
=krb5_environ
)
1344 planoldpythontestsuite("ad_member_idmap_nss:local",
1345 "samba.tests.krb5.test_min_domain_uid",
1346 environ
=krb5_environ
)
1347 planoldpythontestsuite("ad_member_idmap_nss:local",
1348 "samba.tests.krb5.test_idmap_nss",
1351 'MAPPED_USERNAME': 'bob',
1352 'MAPPED_PASSWORD': 'Secret007',
1353 'UNMAPPED_USERNAME': 'jane',
1354 'UNMAPPED_PASSWORD': 'Secret007',
1355 'INVALID_USERNAME': 'joe',
1356 'INVALID_PASSWORD': 'Secret007',
1359 for env
in ["ad_dc", smbv1_disabled_testenv
]:
1360 planoldpythontestsuite(env
, "samba.tests.smb", extra_args
=['-U"$USERNAME%$PASSWORD"'])
1361 planoldpythontestsuite(env
+ ":local", "samba.tests.ntacls_backup",
1362 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1364 planoldpythontestsuite(
1365 "ad_dc_ntvfs:local", "samba.tests.dcerpc.registry",
1366 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1368 planoldpythontestsuite("ad_dc_ntvfs", "samba.tests.dcerpc.dnsserver", extra_args
=['-U"$USERNAME%$PASSWORD"'])
1369 planoldpythontestsuite("ad_dc", "samba.tests.dcerpc.dnsserver", extra_args
=['-U"$USERNAME%$PASSWORD"'])
1371 for env
in ["chgdcpass", "ad_member"]:
1372 planoldpythontestsuite(env
, "samba.tests.dcerpc.raw_protocol",
1373 environ
={"MAX_NUM_AUTH": "8",
1374 "USERNAME": "$DC_USERNAME",
1375 "PASSWORD": "$DC_PASSWORD"})
1377 if have_heimdal_support
:
1378 planoldpythontestsuite("ad_dc_smb1:local", "samba.tests.auth_log", extra_args
=['-U"$USERNAME%$PASSWORD"'],
1379 environ
={'CLIENT_IP': '10.53.57.11',
1380 'SOCKET_WRAPPER_DEFAULT_IFACE': 11})
1381 planoldpythontestsuite("ad_dc_ntvfs:local", "samba.tests.auth_log", extra_args
=['-U"$USERNAME%$PASSWORD"'],
1382 environ
={'CLIENT_IP': '10.53.57.11',
1383 'SOCKET_WRAPPER_DEFAULT_IFACE': 11})
1384 planoldpythontestsuite("ad_dc_smb1", "samba.tests.auth_log_pass_change",
1385 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1386 planoldpythontestsuite("ad_dc_ntvfs", "samba.tests.auth_log_pass_change",
1387 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1389 # these tests use a NCA local RPC connection, so always run on the
1390 # :local testenv, and so don't need to fake a client connection
1391 for env
in ["ad_dc_ntvfs:local", "ad_dc:local"]:
1392 planoldpythontestsuite(env
, "samba.tests.auth_log_ncalrpc", extra_args
=['-U"$USERNAME%$PASSWORD"'])
1393 planoldpythontestsuite(env
, "samba.tests.auth_log_samlogon",
1394 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1395 planoldpythontestsuite(env
, "samba.tests.auth_log_netlogon",
1396 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1397 planoldpythontestsuite(env
, "samba.tests.auth_log_netlogon_bad_creds",
1398 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1400 planoldpythontestsuite("ad_member:local",
1401 "samba.tests.auth_log_winbind",
1402 extra_args
=['-U"$DC_USERNAME%$DC_PASSWORD"'])
1403 planoldpythontestsuite("ad_dc", "samba.tests.audit_log_pass_change",
1404 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1405 planoldpythontestsuite("ad_dc", "samba.tests.audit_log_dsdb",
1406 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1407 planoldpythontestsuite("ad_dc", "samba.tests.group_audit",
1408 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1410 planoldpythontestsuite("fl2008r2dc",
1411 "samba.tests.getdcname",
1412 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1414 planoldpythontestsuite("ad_dc_smb1",
1415 "samba.tests.net_join_no_spnego",
1416 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1417 planoldpythontestsuite("ad_dc",
1418 "samba.tests.net_join",
1419 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1420 planoldpythontestsuite("ad_dc",
1421 "samba.tests.s3_net_join",
1422 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1423 planoldpythontestsuite("ad_dc",
1424 "samba.tests.segfault",
1425 extra_args
=['-U"$USERNAME%$PASSWORD"'],
1426 environ
={"TALLOC_FREE_FILL": "0xab"})
1427 # Need to test the password hashing in multiple environments to ensure that
1428 # all the possible options are covered
1430 # ad_dc:local functional_level >= 2008, gpg keys available
1431 planoldpythontestsuite("ad_dc:local",
1432 "samba.tests.password_hash_gpgme",
1433 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1434 # ad_dc_ntvfs:local functional level >= 2008, gpg keys not available
1435 planoldpythontestsuite("ad_dc_ntvfs:local",
1436 "samba.tests.password_hash_fl2008",
1437 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1438 # fl2003dc:local functional level < 2008, gpg keys not available
1439 planoldpythontestsuite("fl2003dc:local",
1440 "samba.tests.password_hash_fl2003",
1441 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1442 # ad_dc: wDigest values over ldap
1443 planoldpythontestsuite("ad_dc",
1444 "samba.tests.password_hash_ldap",
1445 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1447 for env
in ["ad_dc_backup", smbv1_disabled_testenv
]:
1448 planoldpythontestsuite(env
+ ":local", "samba.tests.domain_backup",
1449 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1451 planoldpythontestsuite("ad_dc",
1452 "samba.tests.domain_backup_offline")
1454 # ensure default provision (ad_dc) and join (vampire_dc)
1455 # encrypt secret values on disk.
1456 planoldpythontestsuite("ad_dc:local",
1457 "samba.tests.encrypted_secrets",
1458 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1459 planoldpythontestsuite("vampire_dc:local",
1460 "samba.tests.encrypted_secrets",
1461 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1462 # The fl2000dc environment is provisioned with the --plaintext_secrets option
1463 # so this test will fail, which proves the secrets are not being encrypted.
1464 # There is an entry in known_fail.d.
1465 planoldpythontestsuite("fl2000dc:local",
1466 "samba.tests.encrypted_secrets",
1467 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1469 planpythontestsuite("none",
1470 "samba.tests.lsa_string")
1472 planoldpythontestsuite("ad_dc_ntvfs",
1473 "samba.tests.krb5_credentials",
1474 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1476 for env
in ["ad_dc_ntvfs", "vampire_dc", "promoted_dc"]:
1477 planoldpythontestsuite(env
,
1478 "samba.tests.py_credentials",
1479 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1480 planoldpythontestsuite("ad_dc_ntvfs",
1481 "samba.tests.emulate.traffic",
1482 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1483 planoldpythontestsuite("ad_dc_ntvfs",
1484 "samba.tests.emulate.traffic_packet",
1485 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1486 planoldpythontestsuite("ad_dc_ntvfs",
1487 "samba.tests.blackbox.traffic_replay",
1488 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1489 planoldpythontestsuite("ad_dc_ntvfs",
1490 "samba.tests.blackbox.traffic_learner",
1491 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1492 planoldpythontestsuite("ad_dc_ntvfs",
1493 "samba.tests.blackbox.traffic_summary",
1494 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1495 planoldpythontestsuite("none", "samba.tests.loadparm")
1496 planoldpythontestsuite("fileserver",
1497 "samba.tests.blackbox.mdsearch",
1498 extra_args
=['-U"$USERNAME%$PASSWORD"'])
1499 planoldpythontestsuite("fileserver",
1500 "samba.tests.blackbox.smbcacls_basic")
1501 planoldpythontestsuite("fileserver",
1502 "samba.tests.blackbox.smbcacls_basic",
1503 "samba.tests.blackbox.smbcacls_basic(DFS)",
1504 environ
={'SHARE': 'msdfs-share',
1505 'TESTDIR': 'smbcacls_sharedir_dfs'})
1506 # Run smbcacls_propagate_inhertance tests on non msdfs root share
1507 planoldpythontestsuite("fileserver",
1508 "samba.tests.blackbox.smbcacls_propagate_inhertance")
1509 planoldpythontestsuite("fileserver",
1510 "samba.tests.blackbox.smbcacls_save_restore")
1511 planoldpythontestsuite("ad_member",
1512 "samba.tests.blackbox.smbcacls_save_restore",
1513 environ
={'USER': '$DC_USERNAME',
1514 'PASSWORD' : '$DC_PASSWORD'}
1518 # A) Run the smbcacls_propagate_inhertance tests on a msdfs root share
1519 # *without* any nested dfs links
1520 # B) Run the smbcacls_propagate_inhertance tests on a msdfs root share
1521 # *with* a nested dfs link
1523 planoldpythontestsuite("fileserver",
1524 "samba.tests.blackbox.smbcacls_dfs_propagate_inherit",
1525 "samba.tests.blackbox.smbcacls_dfs_propagate_inherit(DFS-msdfs-root)",
1526 environ
={'SHARE': 'smbcacls_share'})
1528 planoldpythontestsuite("fileserver",
1529 "samba.tests.blackbox.misc_dfs_widelink")
1531 # Want a selection of environments across the process models
1533 for env
in ["ad_dc_ntvfs:local", "ad_dc:local",
1534 "fl2003dc:local", "fl2008r2dc:local",
1535 "promoted_dc:local"]:
1536 planoldpythontestsuite(env
, "samba.tests.blackbox.smbcontrol")
1538 planoldpythontestsuite("none", "samba.tests.blackbox.downgradedatabase")
1540 planpythontestsuite("ad_member:local", "samba.tests.blackbox.netads_dns")
1542 plantestsuite_loadlist("samba4.ldap.python(ad_dc_default)", "ad_dc_default", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "ldap.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1544 plantestsuite_loadlist("samba4.ldap_modify_order.python(ad_dc_default)",
1546 [python
, os
.path
.join(samba4srcdir
,
1547 "dsdb/tests/python/"
1548 "ldap_modify_order.py"),
1549 # add "-v" here to diagnose
1551 '-U"$USERNAME%$PASSWORD"',
1552 '--workgroup=$DOMAIN',
1556 plantestsuite_loadlist("samba4.ldap_modify_order.normal_user.python(ad_dc_default)",
1558 [python
, os
.path
.join(samba4srcdir
,
1559 "dsdb/tests/python/"
1560 "ldap_modify_order.py"),
1562 # add "-v" here to diagnose
1564 '-U"$USERNAME%$PASSWORD"',
1565 '--workgroup=$DOMAIN',
1569 planoldpythontestsuite("ad_dc",
1570 "samba.tests.ldap_raw",
1571 extra_args
=['-U"$USERNAME%$PASSWORD"'],
1572 environ
={'TEST_ENV': 'ad_dc'})
1574 plantestsuite_loadlist("samba.tests.ldap_spn", "ad_dc",
1576 f
"{srcdir()}/python/samba/tests/ldap_spn.py",
1578 '-U"$USERNAME%$PASSWORD"',
1579 '--workgroup=$DOMAIN',
1580 '$LOADLIST', '$LISTOPT'])
1582 plantestsuite_loadlist("samba.tests.ldap_upn_sam_account", "ad_dc_ntvfs",
1584 f
"{srcdir()}/python/samba/tests/ldap_upn_sam_account.py",
1586 '-U"$USERNAME%$PASSWORD"',
1587 '--workgroup=$DOMAIN',
1588 '$LOADLIST', '$LISTOPT'])
1591 plantestsuite_loadlist("samba4.tokengroups.krb5.python", "ad_dc_default:local", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "token_group.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '-k', 'yes', '$LOADLIST', '$LISTOPT'])
1592 plantestsuite_loadlist("samba4.tokengroups.ntlm.python", "ad_dc_default:local", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "token_group.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '-k', 'no', '$LOADLIST', '$LISTOPT'])
1593 plantestsuite("samba4.sam.python(fl2008r2dc)", "fl2008r2dc", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "sam.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN'])
1594 plantestsuite("samba4.sam.python(ad_dc_default)", "ad_dc_default", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "sam.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN'])
1595 plantestsuite("samba4.asq.python(ad_dc_default)", "ad_dc_default", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "asq.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN'])
1596 plantestsuite("samba4.user_account_control.python(ad_dc_default)", "ad_dc_default", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "user_account_control.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN'])
1597 plantestsuite("samba4.priv_attrs.python(ad_dc_default)", "ad_dc_default", ["STRICT_CHECKING=0", python
, os
.path
.join(DSDB_PYTEST_DIR
, "priv_attrs.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN'])
1598 plantestsuite("samba4.priv_attrs.strict.python(ad_dc_default)", "ad_dc_default", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "priv_attrs.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN'])
1599 plantestsuite("samba4.unicodepwd_encrypted(fl2008r2dc)", "fl2008r2dc", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "unicodepwd_encrypted.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN'])
1601 for env
in ['ad_dc_default:local', 'schema_dc:local']:
1602 planoldpythontestsuite(env
, "dsdb_schema_info",
1603 extra_path
=[os
.path
.join(samba4srcdir
, 'dsdb/tests/python')],
1604 name
="samba4.schemaInfo.python(%s)" % (env
),
1605 extra_args
=['-U"$DOMAIN/$DC_USERNAME%$DC_PASSWORD"'])
1607 planpythontestsuite(env
, "samba.tests.dsdb_schema_attributes")
1609 plantestsuite_loadlist("samba4.urgent_replication.python(ad_dc_ntvfs)", "ad_dc_ntvfs:local", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "urgent_replication.py"), '$PREFIX_ABS/ad_dc_ntvfs/private/sam.ldb', '$LOADLIST', '$LISTOPT'])
1610 plantestsuite_loadlist("samba4.ldap.dirsync.python(ad_dc_ntvfs)", "ad_dc_ntvfs", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "dirsync.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1611 plantestsuite_loadlist("samba4.ldap.match_rules.python", "ad_dc_ntvfs", [python
, os
.path
.join(srcdir(), "lib/ldb-samba/tests/match_rules.py"), '$PREFIX_ABS/ad_dc_ntvfs/private/sam.ldb', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1612 plantestsuite_loadlist("samba4.ldap.match_rules.python", "ad_dc_ntvfs", [python
, os
.path
.join(srcdir(), "lib/ldb-samba/tests/match_rules_remote.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1613 plantestsuite("samba4.ldap.index.python", "none", [python
, os
.path
.join(srcdir(), "lib/ldb-samba/tests/index.py")])
1614 plantestsuite_loadlist("samba4.ldap.notification.python(ad_dc_ntvfs)", "ad_dc_ntvfs", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "notification.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1615 plantestsuite_loadlist("samba4.ldap.sites.python(ad_dc_default)", "ad_dc_default", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "sites.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1618 # Test with LMDB (GSSAPI/SASL bind)
1619 plantestsuite_loadlist("samba4.ldap.large_ldap.gssapi.python(%s)" % env
, env
, [python
, os
.path
.join(DSDB_PYTEST_DIR
, "large_ldap.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--kerberos=yes', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1621 env
= 'ad_dc_default'
1622 # Test with TDB (NTLMSSP bind)
1623 plantestsuite_loadlist("samba4.ldap.large_ldap.ntlmssp.python(%s)" % env
, env
, [python
, os
.path
.join(DSDB_PYTEST_DIR
, "large_ldap.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--kerberos=no', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1626 # Test with ldaps://
1627 plantestsuite_loadlist("samba4.ldap.large_ldap.ldaps.python(%s)" % env
, env
, [python
, os
.path
.join(DSDB_PYTEST_DIR
, "large_ldap.py"), 'ldaps://$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1630 # Test with straight ldap
1631 plantestsuite_loadlist("samba4.ldap.large_ldap.straight_ldap.python(%s)" % env
, env
, [python
, os
.path
.join(DSDB_PYTEST_DIR
, "large_ldap.py"), 'ldap://$SERVER', '--simple-bind-dn=$USERNAME@$REALM', '--password=$PASSWORD', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1633 planoldpythontestsuite("ad_dc_default", "sort", environ
={'SERVER' : '$SERVER', 'DATA_DIR' : os
.path
.join(samba4srcdir
, 'dsdb/tests/python/testdata/')}, name
="samba4.ldap.sort.python", extra_path
=[os
.path
.join(samba4srcdir
, 'dsdb/tests/python')], extra_args
=['-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN'])
1635 plantestsuite_loadlist("samba4.ldap.linked_attributes.python(ad_dc)", "ad_dc:local", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "linked_attributes.py"), '$PREFIX_ABS/ad_dc/private/sam.ldb', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1637 plantestsuite_loadlist("samba4.ldap.subtree_rename.python(ad_dc_ntvfs)",
1638 "ad_dc_ntvfs:local",
1639 [python
, os
.path
.join(samba4srcdir
,
1640 "dsdb/tests/python/subtree_rename.py"),
1641 '$PREFIX_ABS/ad_dc_ntvfs/private/sam.ldb',
1642 '-U"$USERNAME%$PASSWORD"',
1643 '--workgroup=$DOMAIN',
1647 planoldpythontestsuite(
1649 "samba.tests.ldap_referrals",
1651 'SERVER': '$SERVER',
1653 name
="samba.ldap.referrals",
1654 extra_args
=['-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN'])
1656 # These should be the first tests run against testenvs created by backup/restore
1657 for env
in ['offlinebackupdc', 'restoredc', 'renamedc', 'labdc']:
1658 # check that a restored DC matches the original DC (backupfromdc)
1659 plantestsuite("samba4.blackbox.ldapcmp_restore", env
,
1660 ["PYTHON=%s" % python
,
1661 os
.path
.join(bbdir
, "ldapcmp_restoredc.sh"),
1662 '$PREFIX_ABS/backupfromdc', '$PREFIX_ABS/%s' % env
])
1664 # we also test joining backupfromdc here, as it's a bit special in that it
1665 # doesn't have Default-First-Site-Name
1666 for env
in ['backupfromdc', 'offlinebackupdc', 'restoredc', 'renamedc',
1668 # basic test that we can join the testenv DC
1669 plantestsuite("samba4.blackbox.join_ldapcmp", env
,
1670 ["PYTHON=%s" % python
, os
.path
.join(bbdir
, "join_ldapcmp.sh")])
1672 env
= 'backupfromdc'
1673 planoldpythontestsuite("%s:local" % env
, "samba_tool_drs_no_dns",
1674 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1675 name
="samba4.drs.samba_tool_drs_no_dns.python(%s)" % env
,
1676 environ
={'DC1': '$DC_SERVER', 'DC2': '$DC_SERVER'},
1677 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1679 plantestsuite_loadlist("samba4.ldap.rodc.python(rodc)", "rodc",
1681 os
.path
.join(DSDB_PYTEST_DIR
, "rodc.py"),
1682 '$SERVER', '-U"$USERNAME%$PASSWORD"',
1683 '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1685 plantestsuite_loadlist("samba4.ldap.rodc_rwdc.python(rodc)", "rodc:local",
1687 os
.path
.join(samba4srcdir
,
1688 "dsdb/tests/python/rodc_rwdc.py"),
1689 '$SERVER', '$DC_SERVER', '-U"$USERNAME%$PASSWORD"',
1690 '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1692 planoldpythontestsuite("rodc:local", "replica_sync_rodc",
1693 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1694 name
="samba4.drs.replica_sync_rodc.python(rodc)",
1695 environ
={'DC1': '$DC_SERVER', 'DC2': '$SERVER'},
1696 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1698 planoldpythontestsuite("ad_dc_default_smb1", "password_settings",
1699 extra_path
=[os
.path
.join(samba4srcdir
, 'dsdb/tests/python')],
1700 name
="samba4.ldap.passwordsettings.python",
1701 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1703 for env
in all_fl_envs
+ ["schema_dc"]:
1704 plantestsuite_loadlist("samba4.ldap_schema.python(%s)" % env
, env
, [python
, os
.path
.join(DSDB_PYTEST_DIR
, "ldap_schema.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1705 plantestsuite("samba4.ldap.possibleInferiors.python(%s)" % env
, env
, [python
, os
.path
.join(samba4srcdir
, "dsdb/samdb/ldb_modules/tests/possibleinferiors.py"), "ldap://$SERVER", '-U"$USERNAME%$PASSWORD"', "-W$DOMAIN"])
1706 plantestsuite_loadlist("samba4.ldap.secdesc.python(%s)" % env
, env
, [python
, os
.path
.join(DSDB_PYTEST_DIR
, "sec_descriptor.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1707 plantestsuite_loadlist("samba4.ldap.acl.python(%s)" % env
, env
, ["STRICT_CHECKING=0", python
, os
.path
.join(DSDB_PYTEST_DIR
, "acl.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1708 plantestsuite_loadlist("samba4.ldap.acl_modify.python(%s)" % env
, env
, ["STRICT_CHECKING=0", python
, os
.path
.join(DSDB_PYTEST_DIR
, "acl_modify.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1710 for env
in all_fl_envs
+ ["schema_dc", "ad_dc_no_ntlm"]:
1711 if env
!= "fl2000dc":
1712 # This test makes excessive use of the "userPassword" attribute which
1713 # isn't available on DCs with Windows 2000 domain function level -
1714 # therefore skip it in that configuration
1715 plantestsuite_loadlist("samba4.ldap.passwords.python(%s)" % env
, env
, [python
, os
.path
.join(DSDB_PYTEST_DIR
, "passwords.py"), "$SERVER", '-U"$USERNAME%$PASSWORD"', "-W$DOMAIN", '$LOADLIST', '$LISTOPT'])
1717 for env
in ["ad_dc_slowtests"]:
1718 # This test takes a lot of time, so we run it against a minimum of
1719 # environments, please only add new ones if there's really a
1720 # difference we need to test
1721 plantestsuite_loadlist("samba4.ldap.vlv.python(%s)" % env
, env
, [python
, os
.path
.join(DSDB_PYTEST_DIR
, "vlv.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1722 plantestsuite_loadlist("samba4.ldap.confidential_attr.python(%s)" % env
, env
, [python
, os
.path
.join(DSDB_PYTEST_DIR
, "confidential_attr.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1723 plantestsuite_loadlist("samba4.ldap.password_lockout.python(%s)" % env
, env
, [python
, os
.path
.join(DSDB_PYTEST_DIR
, "password_lockout.py"), "$SERVER", '-U"$USERNAME%$PASSWORD"', "-W$DOMAIN", "--realm=$REALM", '$LOADLIST', '$LISTOPT'])
1724 planoldpythontestsuite(env
, "tombstone_reanimation",
1725 name
="samba4.tombstone_reanimation.python",
1726 environ
={'TEST_SERVER': '$SERVER', 'TEST_USERNAME': '$USERNAME', 'TEST_PASSWORD': '$PASSWORD'},
1727 extra_path
=[os
.path
.join(samba4srcdir
, 'dsdb/tests/python')]
1729 planoldpythontestsuite(env
, "samba.tests.join",
1730 name
="samba.tests.join.python(%s)" % env
,
1731 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1733 # this is a basic sanity-check of Kerberos/NTLM user login
1734 for env
in ["offlinebackupdc", "restoredc", "renamedc", "labdc", "ad_dc_no_ntlm"]:
1735 plantestsuite_loadlist("samba4.ldap.login_basics.python(%s)" % env
, env
,
1736 [python
, os
.path
.join(DSDB_PYTEST_DIR
, "login_basics.py"),
1737 "$SERVER", '-U"$USERNAME%$PASSWORD"', "-W$DOMAIN", "--realm=$REALM",
1738 '$LOADLIST', '$LISTOPT'])
1740 planpythontestsuite("ad_dc_ntvfs:local", "samba.tests.upgradeprovisionneeddc")
1741 planpythontestsuite("ad_dc:local", "samba.tests.posixacl")
1742 planpythontestsuite("ad_dc_no_nss:local", "samba.tests.posixacl")
1743 plantestsuite_loadlist("samba4.deletetest.python(ad_dc_default)", "ad_dc_default", [python
, os
.path
.join(DSDB_PYTEST_DIR
, "deletetest.py"),
1744 '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
1745 plantestsuite("samba4.blackbox.samba3dump", "none", [os
.path
.join(samba4srcdir
, "selftest/test_samba3dump.sh")])
1746 plantestsuite("samba4.blackbox.upgrade", "none", ["PYTHON=%s" % python
, os
.path
.join(samba4srcdir
, "setup/tests/blackbox_s3upgrade.sh"), '$PREFIX/provision'])
1747 plantestsuite("samba4.blackbox.provision.py", "none", ["PYTHON=%s" % python
, os
.path
.join(samba4srcdir
, "setup/tests/blackbox_provision.sh"), '$PREFIX/provision'])
1748 plantestsuite("samba4.blackbox.provision_fileperms", "none", ["PYTHON=%s" % python
, os
.path
.join(samba4srcdir
, "setup/tests/provision_fileperms.sh"), '$PREFIX/provision'])
1749 plantestsuite("samba4.blackbox.supported_features", "none",
1750 ["PYTHON=%s" % python
,
1751 os
.path
.join(samba4srcdir
,
1752 "setup/tests/blackbox_supported_features.sh"),
1753 '$PREFIX/provision'])
1754 plantestsuite("samba4.blackbox.start_backup", "none",
1755 ["PYTHON=%s" % python
,
1756 os
.path
.join(samba4srcdir
,
1757 "setup/tests/blackbox_start_backup.sh"),
1758 '$PREFIX/provision'])
1759 plantestsuite("samba4.blackbox.upgradeprovision.current", "none", ["PYTHON=%s" % python
, os
.path
.join(samba4srcdir
, "setup/tests/blackbox_upgradeprovision.sh"), '$PREFIX/provision'])
1760 plantestsuite("samba4.blackbox.setpassword.py", "none", ["PYTHON=%s" % python
, os
.path
.join(samba4srcdir
, "setup/tests/blackbox_setpassword.sh"), '$PREFIX/provision'])
1761 plantestsuite("samba4.blackbox.newuser.py", "none", ["PYTHON=%s" % python
, os
.path
.join(samba4srcdir
, "setup/tests/blackbox_newuser.sh"), '$PREFIX/provision'])
1762 plantestsuite("samba4.blackbox.group.py", "none", ["PYTHON=%s" % python
, os
.path
.join(samba4srcdir
, "setup/tests/blackbox_group.sh"), '$PREFIX/provision'])
1763 plantestsuite("samba4.blackbox.spn.py(ad_dc_ntvfs:local)", "ad_dc_ntvfs:local", ["PYTHON=%s" % python
, os
.path
.join(samba4srcdir
, "setup/tests/blackbox_spn.sh"), '$PREFIX/ad_dc_ntvfs'])
1764 plantestsuite_loadlist("samba4.ldap.bind(fl2008r2dc)", "fl2008r2dc", [python
, os
.path
.join(srcdir(), "auth/credentials/tests/bind.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '$LOADLIST', '$LISTOPT'])
1766 # This makes sure we test the rid allocation code
1767 t
= "rpc.samr.large-dc"
1768 plansmbtorture4testsuite(t
, "vampire_dc", ['$SERVER', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], modname
=("samba4.%s.one" % t
))
1769 plansmbtorture4testsuite(t
, "vampire_dc", ['$SERVER', '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], modname
="samba4.%s.two" % t
)
1771 # RPC smoke-tests for testenvs of interest (RODC, etc)
1772 for env
in ['rodc', 'offlinebackupdc', 'restoredc', 'renamedc', 'labdc']:
1773 plansmbtorture4testsuite('rpc.echo', env
, ['ncacn_np:$SERVER', "-k", "yes", '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], modname
="samba4.rpc.echo")
1774 plansmbtorture4testsuite('rpc.echo', "%s:local" % env
, ['ncacn_np:$SERVER', "-k", "yes", '-P', '--workgroup=$DOMAIN'], modname
="samba4.rpc.echo")
1775 plansmbtorture4testsuite('rpc.echo', "%s:local" % env
, ['ncacn_np:$SERVER', "-k", "no", r
'-Utestallowed\ account%$DC_PASSWORD', '--workgroup=$DOMAIN'], modname
="samba4.rpc.echo.testallowed")
1776 plansmbtorture4testsuite('rpc.echo', "%s:local" % env
, ['ncacn_np:$SERVER', "-k", "no", '-Utestdenied%$DC_PASSWORD', '--workgroup=$DOMAIN'], modname
="samba4.rpc.echo.testdenied")
1777 plantestsuite("samba4.blackbox.smbclient(%s:local)" % env
, "%s:local" % env
, [os
.path
.join(samba4srcdir
, "utils/tests/test_smbclient.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$DOMAIN', binpath('smbclient')])
1779 planpythontestsuite("rodc:local", "samba.tests.samba_tool.rodc")
1781 plantestsuite("samba.blackbox.rpcclient_samlogon", "rodc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient_samlogon.sh"),
1782 "$DC_USERNAME", "$DC_PASSWORD", "ncacn_np:$SERVER", configuration
])
1784 plantestsuite("samba.blackbox.rpcclient_samlogon_testallowed", "rodc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient_samlogon.sh"),
1785 r
"testallowed\ account", "$DC_PASSWORD", "ncacn_np:$SERVER", configuration
])
1787 plantestsuite("samba.blackbox.rpcclient_samlogon_testdenied", "rodc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient_samlogon.sh"),
1788 "testdenied", "$DC_PASSWORD", "ncacn_np:$SERVER", configuration
])
1791 # Test renaming the DC
1792 plantestsuite("samba4.blackbox.renamedc.sh", "none", ["PYTHON=%s" % python
, os
.path
.join(bbdir
, "renamedc.sh"), '$PREFIX/provision'])
1795 # Note that $DC_SERVER is the PDC (e.g. ad_dc_ntvfs) and $SERVER is
1796 # the 2nd DC (e.g. vampire_dc).
1799 planoldpythontestsuite(env
, "ridalloc_exop",
1800 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1801 name
="samba4.drs.ridalloc_exop.python(%s)" % env
,
1802 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER'},
1803 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1805 # This test can pollute the environment a little by creating and
1806 # deleting DCs which can get into the replication state for a while.
1808 # The setting of DC1 to $DC_SERVER means that it will join towards and
1809 # operate on schema_dc. This matters most when running
1810 # test_samba_tool_replicate_local as this sets up a full temp DC and
1811 # does new replication to it, which can show up in the replication
1814 # That is why this test is run on the isolated environment and not on
1815 # those connected with ad_dc (vampiredc/promoteddc)
1817 # The chgdcpass environment is likewise isolated and emulates Samba 4.5
1818 # with regard to GET_ANC
1820 env
= 'schema_pair_dc'
1821 planoldpythontestsuite("%s:local" % env
, "samba_tool_drs",
1822 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1823 name
="samba4.drs.samba_tool_drs.python(%s)" % env
,
1824 environ
={'DC1': '$DC_SERVER', 'DC2': '$SERVER'},
1825 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1826 for env
in ['chgdcpass', 'schema_pair_dc']:
1827 planoldpythontestsuite("%s:local" % env
, "samba_tool_drs_critical",
1828 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1829 name
="samba4.drs.samba_tool_drs_critical.python(%s)" % env
,
1830 environ
={'DC1': '$DC_SERVER', 'DC2': '$SERVER'},
1831 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1833 env
= "schema_pair_dc"
1834 planoldpythontestsuite(env
, "getnc_schema",
1835 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1836 name
="samba4.drs.getnc_schema.python(%s)" % env
,
1837 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER',
1838 "PLEASE_BREAK_MY_WINDOWS": "1"},
1839 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1841 # This test can be sensitive to the DC joins and replications done in
1842 # "samba_tool_drs" so it is run against schema_pair_dc/schema_dc
1843 # not the set of environments connected with ad_dc.
1845 # This will show the replication state of ad_dc
1846 env
= "schema_pair_dc"
1847 planoldpythontestsuite("%s:local" % env
, "samba_tool_drs_showrepl",
1848 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1849 name
="samba4.drs.samba_tool_drs_showrepl.python(%s)" % env
,
1850 environ
={'DC1': '$DC_SERVER', 'DC2': '$SERVER'},
1851 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1853 for env
in ['vampire_dc', 'promoted_dc']:
1854 planoldpythontestsuite("%s:local" % env
, "replica_sync",
1855 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1856 name
="samba4.drs.replica_sync.python(%s)" % env
,
1857 environ
={'DC1': '$DC_SERVER', 'DC2': '$SERVER'},
1858 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1859 planoldpythontestsuite(env
, "delete_object",
1860 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1861 name
="samba4.drs.delete_object.python(%s)" % env
,
1862 environ
={'DC1': '$DC_SERVER', 'DC2': '$SERVER'},
1863 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1864 planoldpythontestsuite(env
, "fsmo",
1865 name
="samba4.drs.fsmo.python(%s)" % env
,
1866 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1867 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER'},
1868 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1869 planoldpythontestsuite(env
, "repl_secdesc",
1870 name
="samba4.drs.repl_secdesc.python(%s)" % env
,
1871 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1872 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER'},
1873 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1874 planoldpythontestsuite(env
, "repl_move",
1875 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1876 name
="samba4.drs.repl_move.python(%s)" % env
,
1877 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER'},
1878 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1879 planoldpythontestsuite(env
, "getnc_unpriv",
1880 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1881 name
="samba4.drs.getnc_unpriv.python(%s)" % env
,
1882 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER'},
1883 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1884 planoldpythontestsuite(env
, "linked_attributes_drs",
1885 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1886 name
="samba4.drs.linked_attributes_drs.python(%s)" % env
,
1887 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER'},
1888 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1889 planoldpythontestsuite(env
, "link_conflicts",
1890 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1891 name
="samba4.drs.link_conflicts.python(%s)" % env
,
1892 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER'},
1893 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1895 # Environment chgdcpass has the Samba 4.5 GET_ANC behaviour, which we
1896 # set a knownfail to expect
1897 for env
in ['vampire_dc', 'promoted_dc', 'chgdcpass']:
1898 planoldpythontestsuite(env
, "getnc_exop",
1899 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1900 name
="samba4.drs.getnc_exop.python(%s)" % env
,
1901 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER'},
1902 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1904 for env
in ['vampire_dc', 'promoted_dc', 'vampire_2000_dc']:
1905 planoldpythontestsuite(env
, "repl_schema",
1906 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1907 name
="samba4.drs.repl_schema.python(%s)" % env
,
1908 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER'},
1909 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1911 # A side-effect of the getncchanges tests is that they will create hundreds of
1912 # tombstone objects, so run them last to avoid interfering with (and slowing
1913 # down) the other DRS tests
1914 for env
in ['vampire_dc', 'promoted_dc']:
1915 planoldpythontestsuite(env
, "getncchanges",
1916 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1917 name
="samba4.drs.getncchanges.python(%s)" % env
,
1918 environ
={'DC1': "$DC_SERVER", 'DC2': '$SERVER'},
1919 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1921 for env
in ['ad_dc_ntvfs']:
1922 planoldpythontestsuite(env
, "repl_rodc",
1923 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1924 name
="samba4.drs.repl_rodc.python(%s)" % env
,
1925 environ
={'DC1': "$DC_SERVER", 'DC2': '$DC_SERVER'},
1926 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1927 planoldpythontestsuite(env
, "cracknames",
1928 extra_path
=[os
.path
.join(samba4srcdir
, 'torture/drs/python')],
1929 name
="samba4.drs.cracknames.python(%s)" % env
,
1930 environ
={'DC1': "$DC_SERVER", 'DC2': '$DC_SERVER'},
1931 extra_args
=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
1933 planoldpythontestsuite("chgdcpass:local", "samba.tests.blackbox.samba_dnsupdate",
1934 environ
={'DNS_SERVER_IP': '$SERVER_IP'})
1936 for env
in ["s4member", "rodc", "promoted_dc", "ad_dc", "ad_member"]:
1937 plantestsuite("samba.blackbox.wbinfo(%s:local)" % env
, "%s:local" % env
, [os
.path
.join(samba4srcdir
, "../nsswitch/tests/test_wbinfo.sh"), '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', env
])
1939 # Offline logon (ad_member)
1940 plantestsuite("samba.blackbox.offline_logon",
1941 "ad_member_offlogon",
1942 [os
.path
.join(bbdir
, "test_offline_logon.sh"),
1944 'alice', 'Secret007',
1946 'jane', 'Secret007',
1947 'joe', 'Secret007'])
1953 # This test is for users cached at the RODC
1954 plansmbtorture4testsuite('krb5.kdc', "rodc", ['ncacn_np:$SERVER_IP', "-k", "yes", '-Utestdenied%$PASSWORD',
1955 '--workgroup=$DOMAIN', '--realm=$REALM',
1956 '--option=torture:krb5-upn=testdenied_upn@$REALM.upn',
1957 '--option=torture:expect_rodc=true'],
1958 "samba4.krb5.kdc with account DENIED permission to replicate to an RODC")
1959 plansmbtorture4testsuite('krb5.kdc', "rodc", ['ncacn_np:$SERVER_IP', "-k", "yes", r
'-Utestallowed\ account%$PASSWORD',
1960 '--workgroup=$DOMAIN', '--realm=$REALM',
1961 '--option=torture:expect_machine_account=true',
1962 r
'--option=torture:krb5-upn=testallowed\ upn@$REALM',
1963 '--option=torture:krb5-hostname=testallowed',
1964 '--option=torture:expect_rodc=true',
1965 '--option=torture:expect_cached_at_rodc=true'],
1966 "samba4.krb5.kdc with account ALLOWED permission to replicate to an RODC")
1968 # This ensures we have correct behaviour on a server that is not not the PDC emulator
1970 plansmbtorture4testsuite('krb5.kdc', env
, ['ncacn_np:$SERVER_IP', "-k", "yes", '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--realm=$REALM'],
1971 "samba4.krb5.kdc with specified account")
1972 plansmbtorture4testsuite('krb5.kdc', env
, ['ncacn_np:$SERVER_IP', "-k", "yes", '-Utestupnspn%$PASSWORD', '--workgroup=$DOMAIN', '--realm=$REALM',
1973 '--option=torture:expect_machine_account=true',
1974 '--option=torture:krb5-upn=http/testupnspn.$DNSNAME@$REALM',
1975 '--option=torture:krb5-hostname=testupnspn.$DNSNAME',
1976 '--option=torture:krb5-service=http'],
1977 "samba4.krb5.kdc with account having identical UPN and SPN")
1978 for env
in ["fl2008r2dc", "fl2003dc"]:
1979 fast_support
= have_fast_support
1980 if env
in ["fl2003dc"]:
1982 planoldpythontestsuite(env
, "samba.tests.krb5.as_req_tests",
1985 'FAST_SUPPORT': fast_support
,
1988 planoldpythontestsuite('fl2008r2dc', 'samba.tests.krb5.salt_tests',
1989 environ
=krb5_environ
)
1991 for env
in ["rodc", "promoted_dc", "fl2000dc", "fl2008r2dc"]:
1993 # The machine account is cached at the RODC, as it is the local account
1994 extra_options
= ['--option=torture:expect_rodc=true', '--option=torture:expect_cached_at_rodc=true']
1998 plansmbtorture4testsuite('krb5.kdc', "%s:local" % env
, ['ncacn_np:$SERVER_IP', "-k", "yes", '-P',
1999 '--workgroup=$DOMAIN', '--realm=$REALM',
2000 '--option=torture:krb5-hostname=$SERVER',
2001 '--option=torture:run_removedollar_test=true',
2002 '--option=torture:expect_machine_account=true'] + extra_options
,
2003 "samba4.krb5.kdc with machine account")
2005 planpythontestsuite("ad_dc", "samba.tests.krb5.as_canonicalization_tests",
2006 environ
=krb5_environ
)
2007 for env
, fast_support
in [("ad_dc", True),
2008 ("fl2003dc", False)]:
2009 planpythontestsuite(env
, "samba.tests.krb5.compatability_tests",
2012 'FAST_SUPPORT': int(have_fast_support
and fast_support
),
2014 planpythontestsuite("ad_dc", "samba.tests.krb5.kdc_tests",
2015 environ
=krb5_environ
)
2016 planpythontestsuite(
2018 "samba.tests.krb5.kdc_tgs_tests",
2019 environ
=krb5_environ
)
2020 planpythontestsuite(
2022 "samba.tests.krb5.fast_tests",
2023 environ
=krb5_environ
)
2024 planpythontestsuite(
2026 "samba.tests.krb5.ms_kile_client_principal_lookup_tests",
2027 environ
=krb5_environ
)
2028 planpythontestsuite(
2030 "samba.tests.krb5.spn_tests",
2031 environ
=krb5_environ
)
2032 planpythontestsuite(
2034 "samba.tests.krb5.alias_tests",
2035 environ
=krb5_environ
)
2036 planoldpythontestsuite(
2038 'samba.tests.krb5.pac_align_tests',
2039 environ
=krb5_environ
)
2040 planoldpythontestsuite(
2042 'samba.tests.krb5.protected_users_tests',
2043 environ
=krb5_environ
)
2044 for env
, nt_hash
in [("ad_dc:local", True),
2045 ("ad_dc_no_ntlm:local", False)]:
2046 planoldpythontestsuite(
2048 'samba.tests.krb5.nt_hash_tests',
2051 'EXPECT_NT_HASH': int(nt_hash
),
2053 planoldpythontestsuite(
2055 'samba.tests.krb5.kpasswd_tests',
2056 environ
=krb5_environ
)
2057 planoldpythontestsuite(
2059 'samba.tests.krb5.claims_tests',
2060 environ
=krb5_environ
)
2061 planoldpythontestsuite(
2063 'samba.tests.krb5.device_tests',
2064 environ
=krb5_environ
)
2065 planoldpythontestsuite(
2067 'samba.tests.krb5.lockout_tests',
2068 environ
=krb5_environ
)
2069 planoldpythontestsuite(
2071 'samba.tests.krb5.group_tests',
2072 environ
=krb5_environ
)
2073 for env
, forced_rc4
in [('ad_dc', False),
2074 ('promoted_dc', True)]:
2075 planoldpythontestsuite(
2077 'samba.tests.krb5.etype_tests',
2080 'DC_SERVER': '$SERVER',
2081 'DC_SERVER_IP': '$SERVER_IP',
2082 'DC_SERVER_IPV6': '$SERVER_IPV6',
2083 'FORCED_RC4': int(forced_rc4
),
2085 planoldpythontestsuite(
2087 'samba.tests.krb5.authn_policy_tests',
2088 environ
=krb5_environ
)
2089 planoldpythontestsuite(
2091 'samba.tests.krb5.pkinit_tests',
2092 environ
=krb5_environ
)
2093 planoldpythontestsuite(
2095 'samba.tests.krb5.conditional_ace_tests',
2096 environ
=krb5_environ
)
2097 planoldpythontestsuite(
2099 'samba.tests.krb5.gkdi_tests',
2100 environ
=krb5_environ
)
2101 planoldpythontestsuite(
2103 'samba.tests.krb5.gmsa_tests',
2104 environ
=krb5_environ
)
2109 planoldpythontestsuite(env
, "samba.tests.kcc",
2110 name
="samba.tests.kcc",
2111 environ
={'TEST_SERVER': '$SERVER', 'TEST_USERNAME': '$USERNAME',
2112 'TEST_PASSWORD': '$PASSWORD',
2115 extra_path
=[os
.path
.join(srcdir(), "samba/python"), ])
2116 planpythontestsuite(env
, "samba.tests.samba_tool.visualize_drs")
2118 planpythontestsuite("ad_dc_default:local", "samba.tests.kcc.kcc_utils")
2120 for env
in ["simpleserver", "fileserver", "nt4_dc", "ad_dc",
2121 "ad_member", "offlinebackupdc", "restoredc", "renamedc", "labdc", 'schema_pair_dc']:
2122 planoldpythontestsuite(env
, "netlogonsvc",
2123 extra_path
=[os
.path
.join(srcdir(), 'python/samba/tests')],
2124 name
="samba.tests.netlogonsvc.python(%s)" % env
)
2126 for env
in ["ktest", "ad_member", "ad_dc_no_ntlm"]:
2127 planoldpythontestsuite(env
, "ntlmdisabled",
2128 extra_path
=[os
.path
.join(srcdir(), 'python/samba/tests')],
2129 name
="samba.tests.ntlmdisabled.python(%s)" % env
)
2131 # Demote the vampire DC, it must be the last test each DC, before the dbcheck
2132 for env
in ['vampire_dc', 'promoted_dc', 'rodc']:
2133 planoldpythontestsuite(env
, "samba.tests.samba_tool.demote",
2134 name
="samba.tests.samba_tool.demote",
2136 'CONFIGFILE': '$PREFIX/%s/etc/smb.conf' % env
2138 extra_args
=['-U"$USERNAME%$PASSWORD"'],
2139 extra_path
=[os
.path
.join(srcdir(), "samba/python")]
2141 # TODO: Verifying the databases really should be a part of the
2142 # environment teardown.
2143 # check the databases are all OK. PLEASE LEAVE THIS AS THE LAST TEST
2144 for env
in ["ad_dc", "fl2000dc", "fl2003dc", "fl2008r2dc",
2145 'vampire_dc', 'promoted_dc', 'backupfromdc', 'restoredc',
2146 'renamedc', 'offlinebackupdc', 'labdc']:
2147 plantestsuite("samba4.blackbox.dbcheck(%s)" % env
, env
+ ":local", ["PYTHON=%s" % python
, os
.path
.join(bbdir
, "dbcheck.sh"), '$PREFIX/provision', configuration
])
2150 # Tests to verify bug 13653 https://bugzilla.samba.org/show_bug.cgi?id=13653
2151 # ad_dc has an lmdb backend, ad_dc_ntvfs has a tdb backend.
2153 planoldpythontestsuite("ad_dc_ntvfs:local",
2154 "samba.tests.blackbox.bug13653",
2155 extra_args
=['-U"$USERNAME%$PASSWORD"'],
2156 environ
={'TEST_ENV': 'ad_dc_ntvfs'})
2157 planoldpythontestsuite("ad_dc:local",
2158 "samba.tests.blackbox.bug13653",
2159 extra_args
=['-U"$USERNAME%$PASSWORD"'],
2160 environ
={'TEST_ENV': 'ad_dc'})
2161 # cmocka tests not requiring a specific environment
2163 plantestsuite("samba4.dsdb.samdb.ldb_modules.unique_object_sids", "none",
2164 [os
.path
.join(bindir(), "test_unique_object_sids")])
2165 plantestsuite("samba4.dsdb.samdb.ldb_modules.encrypted_secrets.tdb", "none",
2166 [os
.path
.join(bindir(), "test_encrypted_secrets_tdb")])
2167 plantestsuite("samba4.dsdb.samdb.ldb_modules.encrypted_secrets.mdb", "none",
2168 [os
.path
.join(bindir(), "test_encrypted_secrets_mdb")])
2169 plantestsuite("lib.audit_logging.audit_logging", "none",
2170 [os
.path
.join(bindir(), "audit_logging_test")])
2171 plantestsuite("lib.audit_logging.audit_logging.errors", "none",
2172 [os
.path
.join(bindir(), "audit_logging_error_test")])
2173 plantestsuite("samba4.dsdb.samdb.ldb_modules.audit_util", "none",
2174 [os
.path
.join(bindir(), "test_audit_util")])
2175 plantestsuite("samba4.dsdb.samdb.ldb_modules.audit_log", "none",
2176 [os
.path
.join(bindir(), "test_audit_log")])
2177 plantestsuite("samba4.dsdb.samdb.ldb_modules.audit_log.errors", "none",
2178 [os
.path
.join(bindir(), "test_audit_log_errors")])
2179 plantestsuite("samba4.dsdb.samdb.ldb_modules.group_audit", "none",
2180 [os
.path
.join(bindir(), "test_group_audit")])
2181 plantestsuite("samba4.dsdb.samdb.ldb_modules.group_audit.errors", "none",
2182 [os
.path
.join(bindir(), "test_group_audit_errors")])
2183 plantestsuite("samba4.dcerpc.dnsserver.dnsutils", "none",
2184 [os
.path
.join(bindir(), "test_rpc_dns_server_dnsutils")])
2185 plantestsuite("libcli.drsuapi.repl_decrypt", "none",
2186 [os
.path
.join(bindir(), "test_repl_decrypt")])
2187 plantestsuite("librpc.ndr.ndr_string", "none",
2188 [os
.path
.join(bindir(), "test_ndr_string")])
2189 plantestsuite("librpc.ndr.ndr", "none",
2190 [os
.path
.join(bindir(), "test_ndr")])
2191 plantestsuite("librpc.ndr.ndr_macros", "none",
2192 [os
.path
.join(bindir(), "test_ndr_macros")])
2193 plantestsuite("librpc.ndr.ndr_dns_nbt", "none",
2194 [os
.path
.join(bindir(), "test_ndr_dns_nbt")])
2195 plantestsuite("librpc.ndr.test_ndr_gmsa", "none",
2196 [os
.path
.join(bindir(), "test_ndr_gmsa")])
2197 plantestsuite("libcli.ldap.ldap_message", "none",
2198 [os
.path
.join(bindir(), "test_ldap_message")])
2200 # process restart and limit tests, these break the environment so need to run
2201 # in their own specific environment
2202 planoldpythontestsuite("preforkrestartdc:local",
2203 "samba.tests.prefork_restart",
2205 os
.path
.join(srcdir(), 'python/samba/tests')],
2206 extra_args
=['-U"$USERNAME%$PASSWORD"'],
2207 name
="samba.tests.prefork_restart")
2208 planoldpythontestsuite("preforkrestartdc:local",
2209 "samba.tests.blackbox.smbcontrol_process",
2211 os
.path
.join(srcdir(), 'python/samba/tests')],
2212 extra_args
=['-U"$USERNAME%$PASSWORD"'],
2213 name
="samba.tests.blackbox.smbcontrol_process")
2214 planoldpythontestsuite("proclimitdc",
2215 "samba.tests.process_limits",
2217 os
.path
.join(srcdir(), 'python/samba/tests')],
2218 extra_args
=['-U"$USERNAME%$PASSWORD"'],
2219 name
="samba.tests.process_limits")
2221 planoldpythontestsuite("none", "samba.tests.usage")
2222 planpythontestsuite("fileserver", "samba.tests.dcerpc.mdssvc")
2223 planoldpythontestsuite("none", "samba.tests.compression")
2224 planpythontestsuite("none", "samba.tests.security_descriptors")
2226 if have_cluster_support
:
2228 "SERVER_HOSTNAME": "$NETBIOSNAME",
2229 "INTERFACE_GROUP_NAME": "$NETBIOSNAME.$REALM",
2230 "CLUSTER_SHARE": "registry_share",
2231 "USERNAME": "$DC_USERNAME",
2232 "PASSWORD": "$DC_PASSWORD",
2234 planpythontestsuite("clusteredmember:local",
2235 "samba.tests.blackbox.rpcd_witness_samba_only",
2236 environ
=cluster_environ
)