From: Garming Sam Date: Tue, 27 Feb 2018 23:17:46 +0000 (+1300) Subject: tests/dbcheck: Provision using the old schema and ignore displayName X-Git-Tag: talloc-2.1.12~349 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43ca89b46bc76d10fb9bfda1d4ac7d16cf55b689;p=thirdparty%2Fsamba.git tests/dbcheck: Provision using the old schema and ignore displayName These tests are currently not run on Ubuntu due to bashisms in the test. Signed-off-by: Garming Sam Reviewed-by: Andreas Schneider --- diff --git a/testprogs/blackbox/dbcheck-oldrelease.sh b/testprogs/blackbox/dbcheck-oldrelease.sh index 55e6ddf4f02..0949d324aaa 100755 --- a/testprogs/blackbox/dbcheck-oldrelease.sh +++ b/testprogs/blackbox/dbcheck-oldrelease.sh @@ -367,13 +367,16 @@ check_expected_after_deleted_objects() { referenceprovision() { if [ x$RELEASE == x"release-4-0-0" ]; then - $PYTHON $BINDIR/samba-tool domain provision --server-role="dc" --domain=SAMBA --host-name=ares --realm=${RELEASE}.samba.corp --targetdir=$PREFIX_ABS/${RELEASE}_reference --use-ntvfs --host-ip=127.0.0.1 --host-ip6=::1 --function-level=2003 + $PYTHON $BINDIR/samba-tool domain provision --server-role="dc" --domain=SAMBA --host-name=ares --realm=${RELEASE}.samba.corp --targetdir=$PREFIX_ABS/${RELEASE}_reference --use-ntvfs --host-ip=127.0.0.1 --host-ip6=::1 --function-level=2003 --base-schema=2008_R2_old + + # on top of this, also apply 2008R2 changes we accidentally missed in the past + $PYTHON $BINDIR/samba-tool domain schemaupgrade -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb --ldf-file=samba-4.7-missing-for-schema45.ldif,fix-forest-rev.ldf fi } ldapcmp() { if [ x$RELEASE == x"release-4-0-0" ]; then - $PYTHON $BINDIR/samba-tool ldapcmp tdb://$PREFIX_ABS/${RELEASE}_reference/private/sam.ldb tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb --two --skip-missing-dn --filter=dnsRecord + $PYTHON $BINDIR/samba-tool ldapcmp tdb://$PREFIX_ABS/${RELEASE}_reference/private/sam.ldb tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb --two --skip-missing-dn --filter=dnsRecord,displayName fi }