mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
selftest: Fix upgradeprovision test by importing new objects for schema 45
The recent schema changes mean that the upgradeprovision test starts failing. This is because it's using an old 4.0.0 schema (that doesn't have these schema changes), but it's comparing it against a fresh provision (which does have the changes). We can avoid this failure by using the 'samba-tool domain schemaupgrade' to bring the old 4.0.0 schema in line with a fresh provision. Note that the 'upgradeprovision --full' test doesn't need this change as it seems to more aggressively copy over any schema differences with a fresh provision. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
d157f9752b
commit
f4d9b797e2
@ -1,3 +0,0 @@
|
||||
# This has a full set of extended rights for schema 45 in the
|
||||
# new provision code, but not in the upgrade path
|
||||
^samba4.blackbox.upgradeprovision.release-4-0-0.ldapcmp
|
@ -79,7 +79,11 @@ dbcheck_full_clean_well_known_acls() {
|
||||
}
|
||||
|
||||
upgradeprovision() {
|
||||
# bring the really old Samba schema in line with a more recent 2008R2 schema
|
||||
$PYTHON $BINDIR/samba_upgradeprovision -s "$PREFIX_ABS/${RELEASE}_upgrade/etc/smb.conf" --debugchange
|
||||
|
||||
# on top of this, also apply 2008R2 changes we accidentally missed in the past
|
||||
$BINDIR/samba-tool domain schemaupgrade -H tdb://$PREFIX_ABS/${RELEASE}_upgrade/private/sam.ldb --ldf-file=samba-4.7-missing-for-schema45.ldif
|
||||
}
|
||||
|
||||
upgradeprovision_full() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user