mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
selftest: Do not scan the full DB to confirm a specific DN in dbcheck
This avoids a full DB scan and therefore reduces the test time taken when we just modified the cn=administrator record. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
8f1557a2c4
commit
0b525fe862
@ -227,7 +227,7 @@ check_forced_duplicate_values() {
|
||||
# This should 'fail', because it returns the number of modified records
|
||||
dbcheck_after_dup() {
|
||||
if [ x$RELEASE = x"release-4-1-0rc3" ]; then
|
||||
$PYTHON $BINDIR/samba-tool dbcheck --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
|
||||
$PYTHON $BINDIR/samba-tool dbcheck --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb cn=administrator,cn=users,DC=release-4-1-0rc3,DC=samba,DC=corp $@
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user