summaryrefslogtreecommitdiffstats
path: root/source4/selftest
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2015-01-23 14:28:28 +1300
committerAndrew Bartlett <abartlet@samba.org>2015-01-23 05:42:08 +0100
commit62905cd6d21d457a54faa2a14e9713dcf280dbe5 (patch)
treec6d9128e57ef715f47d9319a5dc88bfe1f23a022 /source4/selftest
parent89b868f67761fbcf1319229c2f09502bdf16086e (diff)
downloadsamba-62905cd6d21d457a54faa2a14e9713dcf280dbe5.tar.gz
samba-62905cd6d21d457a54faa2a14e9713dcf280dbe5.tar.xz
samba-62905cd6d21d457a54faa2a14e9713dcf280dbe5.zip
torture-krb5: Split the expected behaviour of the RODC up
The expectations of the cached accounts are different to those of the RODC in general. Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/selftest')
-rwxr-xr-xsource4/selftest/tests.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index 62d5473b45..ec202b4881 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -549,12 +549,19 @@ for env in ["dc", "s4member", "rodc", "promoted_dc", "plugin_s4_dc", "s3member"]
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])
for env in ["dc", "rodc", "promoted_dc", "plugin_s4_dc", "fl2000dc", "fl2003dc", "fl2008r2dc"]:
- plansmbtorture4testsuite('krb5.kdc', env, ['ncacn_np:$SERVER_IP', "-k", "yes", '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--realm=$REALM'],
+ if env == "rodc":
+ extra_options = ['--option=torture:expect_rodc=true']
+ else:
+ extra_options = []
+
+ plansmbtorture4testsuite('krb5.kdc', env, ['ncacn_np:$SERVER_IP', "-k", "yes", '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--realm=$REALM'] + extra_options,
"samba4.krb5.kdc with specified account")
- plansmbtorture4testsuite('krb5.kdc', env, ['ncacn_np:$SERVER_IP', "-k", "yes", '-Utestdenied%$PASSWORD', '--workgroup=$DOMAIN', '--realm=$REALM'],
+ plansmbtorture4testsuite('krb5.kdc', env, ['ncacn_np:$SERVER_IP', "-k", "yes", '-Utestdenied%$PASSWORD', '--workgroup=$DOMAIN', '--realm=$REALM'] + extra_options,
"samba4.krb5.kdc with account DENIED permission to replicate to an RODC")
+
+ # These last two tests are for users cached at the RODC
if env == "rodc":
- extra_options = ['--option=torture:expect_rodc=true']
+ extra_options = ['--option=torture:expect_rodc=true', '--option=torture:expect_cached_at_rodc=true']
else:
extra_options = []