1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

testprogs/blackbox: also raise the levels to 2012_R2/2016 in functionalprep.sh

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2023-06-21 10:21:32 +02:00 committed by Andrew Bartlett
parent d2777d47d1
commit c95813374a

View File

@ -93,6 +93,22 @@ functional_prep_2016()
$PYTHON $BINDIR/samba-tool domain functionalprep -H tdb://$PREFIX_ABS/2019_schema/private/sam.ldb --function-level=2016 $PYTHON $BINDIR/samba-tool domain functionalprep -H tdb://$PREFIX_ABS/2019_schema/private/sam.ldb --function-level=2016
} }
level_raise_2012R2()
{
$PYTHON $BINDIR/samba-tool domain level raise \
-H tdb://$PREFIX_ABS/2019_schema/private/sam.ldb \
--option="ad dc functional level = 2012_R2" \
--domain-level=2012_R2 --forest-level=2012_R2
}
level_raise_2016()
{
$PYTHON $BINDIR/samba-tool domain level raise \
-H tdb://$PREFIX_ABS/2019_schema/private/sam.ldb \
--option="ad dc functional level = 2016" \
--domain-level=2016 --forest-level=2016
}
functional_prep_2012R2() functional_prep_2012R2()
{ {
$PYTHON $BINDIR/samba-tool domain functionalprep -H tdb://$PREFIX_ABS/2012R2_schema/private/sam.ldb --function-level=2012_R2 $PYTHON $BINDIR/samba-tool domain functionalprep -H tdb://$PREFIX_ABS/2012R2_schema/private/sam.ldb --function-level=2012_R2
@ -157,6 +173,11 @@ testit "provision_schema_2019_prep_skip" provision_schema_2019_prep_skip || fail
# Perform functional prep up to 2016 level # Perform functional prep up to 2016 level
testit "functional_prep_2016" functional_prep_2016 || failed=$(expr $failed + 1) testit "functional_prep_2016" functional_prep_2016 || failed=$(expr $failed + 1)
# raise the levels to 2012_R2
testit "level_raise_2012R2" level_raise_2012R2 || failed=$(expr $failed + 1)
# raise the levels to 2016
testit "level_raise_2016" level_raise_2016 || failed=$(expr $failed + 1)
cleanup_output_directories cleanup_output_directories
exit $failed exit $failed