1 # To reproduce the domain in this snapshot:
3 git checkout 6a03c817b3a0ef278d10893eafd327ee20bdca58
4 git cherry-pick f80d6500b93537e5513a9042006ae95a093e1484
5 patch -p1 < rename-domains.patch
7 # MASTER_SRC needs to point at where the schema files can be found, not the 4.1.0rc1 checkout
9 SELFTEST_TESTENV=promoted_dc:local make testenv
11 # then in the testenv, run:
13 bin/ldbadd -H st/dc/private/sam.ldb --configfile st/dc/private/sam.ldb $MASTER_SRC/source4/selftest/provisions/release-4-1-0rc3/sudo.schema.ldif --option='dsdb:schema update allowed=yes'
14 bin/ldbadd -H st/dc/private/sam.ldb --configfile st/dc/private/sam.ldb $MASTER_SRC/source4/selftest/provisions/release-4-1-0rc3/sudo.schema.2.ldif --option='dsdb:schema update allowed=yes'
15 bin/ldbadd -H st/dc/private/sam.ldb --configfile st/dc/private/sam.ldb $MASTER_SRC/source4/selftest/provisions/release-4-1-0rc3/sudoers.ldif
17 (wait some time, retry until successful)
19 bin/samba-tool drs replicate $SERVER.$REALM $DC_SERVER.$REALM DC=release-4-1-0rc3,DC=samba,DC=corp -U$DC_USERNAME%$DC_PASSWORD
20 bin/samba-tool drs replicate $DC_SERVER.$REALM $SERVER.$REALM DC=release-4-1-0rc3,DC=samba,DC=corp -U$DC_USERNAME%$DC_PASSWORD
22 bin/ldbmodify -H st/promoted_dc/private/sam.ldb $MASTER_SRC/source4/selftest/provisions/release-4-1-0rc3/sudoers-mod.ldif
24 bin/ldbsearch -H st/promoted_dc/private/sam.ldb cn=ops_run_anything \* replpropertymetadata --show-binary > source4/selftest/provisions/release-4-1-0rc3/expected-replpropertymetadata-before-dbcheck.ldif
26 bin/ldbadd -H st/promoted_dc/private/sam.ldb --configfile st/dc/private/sam.ldb $MASTER_SRC/source4/selftest/provisions/release-4-1-0rc3/sudoers2.ldif
27 # Note that sudoers2-mod.ldif is used with the git build, not the 4.1 build
29 # Then these modified files can be pushed back into master by running
31 $MASTER_SRC/source4/selftest/provisions/dump.sh st/promoted_dc $MASTER_SRC/source4/selftest/provisions/release-4-1-0rc3
33 # Finally copy in expected-replpropertymetadata-before-dbcheck.ldif