From 32e2b75a96b45d64d6059240ef2e8da924c6c84e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 3 Feb 2015 11:36:49 +1300 Subject: [PATCH] selftest: Run krb5.kdc with an account that has a UPN and an SPN Signed-off-by: Andrew Bartlett Pair-programmed-with: Garming Sam Signed-off-by: Garming Sam --- selftest/target/Samba4.pm | 2 ++ source4/selftest/tests.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index c85b4a75806..1cc74b79875 100755 --- a/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm @@ -829,6 +829,8 @@ sub provision_raw_step2($$$) changetype: modify replace: userPrincipalName userPrincipalName: testallowed_upn\@$ctx->{realm} +replace: servicePrincipalName +servicePrincipalName: host/testallowed - "; close(LDIF); diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 313bd67b3f1..c188a0ca6d7 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -572,7 +572,7 @@ for env in ["dc", "rodc", "promoted_dc", "plugin_s4_dc", "fl2000dc", "fl2003dc", plansmbtorture4testsuite('krb5.kdc', "%s:local" % env, ['ncacn_np:$SERVER_IP', "-k", "yes", '-P', '--workgroup=$DOMAIN', '--realm=$REALM', '--option=torture:expect_machine_account=true'] + extra_options, "samba4.krb5.kdc with machine account") - plansmbtorture4testsuite('krb5.kdc', env, ['ncacn_np:$SERVER_IP', "-k", "yes", '-Utestallowed%$PASSWORD', '--workgroup=$DOMAIN', '--realm=$REALM', '--option=torture:krb5-upn=testallowed_upn@$REALM'] + extra_options, + plansmbtorture4testsuite('krb5.kdc', env, ['ncacn_np:$SERVER_IP', "-k", "yes", '-Utestallowed%$PASSWORD', '--workgroup=$DOMAIN', '--realm=$REALM', '--option=torture:expect_machine_account=true', '--option=torture:krb5-upn=testallowed_upn@$REALM'] + extra_options, "samba4.krb5.kdc with account ALLOWED permission to replicate to an RODC") # TODO: Verifying the databases really should be a part of the -- 2.11.4.GIT