mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
selftest: Add more RODC tests to avoid regressions here
This ensures that the RODC can authenticatate users over wbinfo, normal services and SamLogon including in particular the important need-to-be-forwarded case Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
6ccdd3f53c
commit
84204e9716
@ -217,6 +217,8 @@
|
||||
^samba.wbinfo_simple.\(ad_dc:local\).--allocate-gid
|
||||
^samba.wbinfo_simple.\(chgdcpass:local\).--allocate-uid
|
||||
^samba.wbinfo_simple.\(chgdcpass:local\).--allocate-gid
|
||||
^samba.wbinfo_simple.\(rodc:local\).--allocate-uid
|
||||
^samba.wbinfo_simple.\(rodc:local\).--allocate-gid
|
||||
#
|
||||
# These do not work against winbindd in member mode for unknown reasons
|
||||
#
|
||||
|
@ -10,16 +10,16 @@ fi
|
||||
USERNAME="$1"
|
||||
PASSWORD="$2"
|
||||
shift 2
|
||||
ADDARGS="$*"
|
||||
ADDARGS="$@"
|
||||
|
||||
rpcclient_samlogon_schannel_seal()
|
||||
{
|
||||
$VALGRIND $BINDIR/rpcclient -U% -c "schannel;samlogon $USERNAME $PASSWORD;samlogon $USERNAME $PASSWORD" $@
|
||||
$VALGRIND $BINDIR/rpcclient -U% -c "schannel;samlogon '$USERNAME' '$PASSWORD';samlogon '$USERNAME' '$PASSWORD'" $@
|
||||
}
|
||||
|
||||
rpcclient_samlogon_schannel_sign()
|
||||
{
|
||||
$VALGRIND $BINDIR/rpcclient -U% -c "schannelsign;samlogon $USERNAME $PASSWORD;samlogon $USERNAME $PASSWORD" $@
|
||||
$VALGRIND $BINDIR/rpcclient -U% -c "schannelsign;samlogon '$USERNAME' '$PASSWORD';samlogon '$USERNAME' '$PASSWORD'" $@
|
||||
}
|
||||
|
||||
incdir=`dirname $0`/../../../testprogs/blackbox
|
||||
|
@ -484,7 +484,7 @@ for env in ["nt4_dc", "fl2003dc"]:
|
||||
for t in winbind_wbclient_tests:
|
||||
plansmbtorture4testsuite(t, "%s:local" % env, '//$SERVER/tmp -U$DC_USERNAME%$DC_PASSWORD')
|
||||
|
||||
for env in ["nt4_dc", "nt4_member", "ad_dc", "ad_member", "s4member", "chgdcpass"]:
|
||||
for env in ["nt4_dc", "nt4_member", "ad_dc", "ad_member", "s4member", "chgdcpass", "rodc"]:
|
||||
tests = ["--ping", "--separator",
|
||||
"--own-domain",
|
||||
"--all-domains",
|
||||
@ -661,8 +661,21 @@ plansmbtorture4testsuite(t, "vampire_dc", ['$SERVER', '-U$USERNAME%$PASSWORD', '
|
||||
for env in ['rodc']:
|
||||
plansmbtorture4testsuite('rpc.echo', env, ['ncacn_np:$SERVER', "-k", "yes", '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], modname="samba4.rpc.echo")
|
||||
plansmbtorture4testsuite('rpc.echo', "%s:local" % env, ['ncacn_np:$SERVER', "-k", "yes", '-P', '--workgroup=$DOMAIN'], modname="samba4.rpc.echo")
|
||||
plansmbtorture4testsuite('rpc.echo', "%s:local" % env, ['ncacn_np:$SERVER', "-k", "no", '-Utestallowed\ account%$DC_PASSWORD', '--workgroup=$DOMAIN'], modname="samba4.rpc.echo.testallowed")
|
||||
plansmbtorture4testsuite('rpc.echo', "%s:local" % env, ['ncacn_np:$SERVER', "-k", "no", '-Utestdenied%$DC_PASSWORD', '--workgroup=$DOMAIN'], modname="samba4.rpc.echo.testdenied")
|
||||
planpythontestsuite("rodc:local", "samba.tests.samba_tool.rodc")
|
||||
|
||||
plantestsuite("samba.blackbox.rpcclient_samlogon", "rodc:local", [os.path.join(samba3srcdir, "script/tests/test_rpcclient_samlogon.sh"),
|
||||
"$DC_USERNAME", "$DC_PASSWORD", "ncacn_np:$SERVER", configuration])
|
||||
|
||||
plantestsuite("samba.blackbox.rpcclient_samlogon_testallowed", "rodc:local", [os.path.join(samba3srcdir, "script/tests/test_rpcclient_samlogon.sh"),
|
||||
"testallowed\ account", "$DC_PASSWORD", "ncacn_np:$SERVER", configuration])
|
||||
|
||||
plantestsuite("samba.blackbox.rpcclient_samlogon_testdenied", "rodc:local", [os.path.join(samba3srcdir, "script/tests/test_rpcclient_samlogon.sh"),
|
||||
"testdenied", "$DC_PASSWORD", "ncacn_np:$SERVER", configuration])
|
||||
|
||||
|
||||
|
||||
plantestsuite("samba4.blackbox.provision-backend", "none", ["PYTHON=%s" % python, os.path.join(samba4srcdir, "setup/tests/blackbox_provision-backend.sh"), '$PREFIX/provision'])
|
||||
|
||||
# Test renaming the DC
|
||||
|
Loading…
x
Reference in New Issue
Block a user