5 Usage: dbcheck.sh PREFIX RELEASE
14 .
`dirname $0`/subunit.sh
16 release_dir
=`dirname $0`/..
/..
/source4/selftest
/provisions
/$RELEASE
19 if [ -x "$BINDIR/ldbmodify" ]; then
20 ldbmodify
="$BINDIR/ldbmodify"
24 if [ -x "$BINDIR/ldbdel" ]; then
25 ldbdel
="$BINDIR/ldbdel"
29 if [ -x "$BINDIR/ldbsearch" ]; then
30 ldbsearch
="$BINDIR/ldbsearch"
34 if test -x $BINDIR/tdbrestore
;
36 `dirname $0`/..
/..
/source4/selftest
/provisions
/undump.sh
$release_dir $PREFIX_ABS/$RELEASE $BINDIR/tdbrestore
38 `dirname $0`/..
/..
/source4/selftest
/provisions
/undump.sh
$release_dir $PREFIX_ABS/$RELEASE
42 add_userparameters0
() {
43 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
44 $ldbmodify -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb
<<EOF
45 dn: cn=localdc,cn=domain controllers,dc=release-4-1-0rc3,dc=samba,dc=corp
47 replace: userParameters
48 userParameters:: IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC
49 AAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAUAAQABoACAAB
50 AEMAdAB4AEMAZgBnAFAAcgBlAHMAZQBuAHQANTUxZTBiYjAYAAgAAQBDAHQAeABDAGYAZw
51 BGAGwAYQBnAHMAMQAwMGUwMDAxMBYACAABAEMAdAB4AEMAYQBsAGwAYgBhAGMAawAwMDAw
52 MDAwMBIACAABAEMAdAB4AFMAaABhAGQAbwB3ADAxMDAwMDAwKAAIAAEAQwB0AHgATQBhAH
53 gAQwBvAG4AbgBlAGMAdABpAG8AbgBUAGkAbQBlADAwMDAwMDAwLgAIAAEAQwB0AHgATQBh
54 AHgARABpAHMAYwBvAG4AbgBlAGMAdABpAG8AbgBUAGkAbQBlADAwMDAwMDAwHAAIAAEAQw
55 B0AHgATQBhAHgASQBkAGwAZQBUAGkAbQBlADAwMDAwMDAwIgAIAAEAQwB0AHgASwBlAHkA
56 YgBvAGEAcgBkAEwAYQB5AG8AdQB0ADAwMDAwMDAwKgACAAEAQwB0AHgATQBpAG4ARQBuAG
57 MAcgB5AHAAdABpAG8AbgBMAGUAdgBlAGwAMDAgAAIAAQBDAHQAeABXAG8AcgBrAEQAaQBy
58 AGUAYwB0AG8AcgB5ADAwIAACAAEAQwB0AHgATgBXAEwAbwBnAG8AbgBTAGUAcgB2AGUAcg
59 AwMBgAJAABAEMAdAB4AFcARgBIAG8AbQBlAEQAaQByADVjNWM3MzYxNzQ3NTcyNmU2NTVj
60 NzAyZTYyNjk2NDZmNmUwMCIABgABAEMAdAB4AFcARgBIAG8AbQBlAEQAaQByAEQAcgBpAH
61 YAZQA1MDNhMDAgADoAAQBDAHQAeABXAEYAUAByAG8AZgBpAGwAZQBQAGEAdABoADVjNWM3
62 MzYxNzQ3NTcyNmU2NTVjNzA3MjZmNjY2OTZjNjU3NDczNjU1YzcwMmU2MjY5NjQ2ZjZlMD
63 AiAAIAAQBDAHQAeABJAG4AaQB0AGkAYQBsAFAAcgBvAGcAcgBhAG0AMDAiAAIAAQBDAHQA
64 eABDAGEAbABsAGIAYQBjAGsATgB1AG0AYgBlAHIAMDA=
69 add_userparameters1
() {
70 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
71 $ldbmodify -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb
<<EOF
72 dn: cn=administrator,cn=users,dc=release-4-1-0rc3,dc=samba,dc=corp
74 replace: userParameters
75 userParameters: IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC
76 AAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAUAAQABoACAAB
77 AEMAdAB4AEMAZgBnAFAAcgBlAHMAZQBuAHQANTUxZTBiYjAYAAgAAQB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bmodify -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb
<<EOF
99 dn: cn=krbtgt,cn=users,dc=release-4-1-0rc3,dc=samba,dc=corp
101 replace: userParameters
102 userParameters:: Q3R4Q2ZnUHJlc2VudCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI
103 CAgUAsaCAFDdHhDZmdQcmVzZW5045S15pSx5oiw44GiIAIBQ3R4V0ZQcm9maWxlUGF0aOOAsBgCAU
104 N0eFdGSG9tZURpcuOAsCICAUN0eFdGSG9tZURpckRyaXZl44CwEggBQ3R4U2hhZG9344Sw44Cw44C
105 w44CwLggBQ3R4TWF4RGlzY29ubmVjdGlvblRpbWXjgaXjjLnjkLDjgLAoCAFDdHhNYXhDb25uZWN0
106 aW9uVGltZeOAtOOct+aIseOAsBwIAUN0eE1heElkbGVUaW1l44Gj45yy46Sw44CwIAIBQ3R4V29ya
107 0RpcmVjdG9yeeOAsBgIAUN0eENmZ0ZsYWdzMeOAsOOBpuOYsuOAuCICAUN0eEluaXRpYWxQcm9ncm
114 add_userparameters3
() {
115 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
116 $ldbmodify -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb
<<EOF
117 dn: cn=guest,cn=users,dc=release-4-1-0rc3,dc=samba,dc=corp
119 replace: userParameters
120 userParameters:: QwAAAHQAAAB4AAAAQwAAAGYAAABnAAAAUAAAAHIAAABlAAAAcwAAAGUAAABuA
121 AAAdAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAA
122 AgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACA
123 AAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAUAAAAAsAAAAaAAAACAAAAAEAAABDAAAAdAAA
124 AHgAAABDAAAAZgAAAGcAAABQAAAAcgAAAGUAAABzAA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AAMgA2ADgAMAAiAAAAAgAAAAEAAABDAAAAdAAAAHgAAABJAAAAbgAAAGkAAAB0AAAAaQAAAGE
139 AAABsAAAAUAAAAHIAAABvAAAAZwAAAHIAAABhAAAAbQAAADAAMAA=
146 $PYTHON $BINDIR/samba-tool dbcheck
--reindex -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb $@
149 do_current_version_mod
() {
150 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
151 # Confirm (in combination with the ldbsearch below) that
152 # changing the attribute with current Samba fixes it, and that
153 # a fixed attriute isn't unfixed by dbcheck.
154 tmpldif
=$release_dir/sudoers2-mod.ldif
155 $ldbmodify -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb
$tmpldif
160 check_expected_before_values
() {
161 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
162 tmpldif
=$PREFIX_ABS/$RELEASE/expected-replpropertymetadata-before-dbcheck.ldif.tmp
163 TZ
=UTC
$ldbsearch -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb cn
=ops_run_anything
-s one
-b OU
=SUDOers
,DC
=release-4-1-0rc3
,DC
=samba
,DC
=corp \
* replpropertymetadata
--sorted --show-binary > $tmpldif
164 diff $tmpldif $release_dir/expected-replpropertymetadata-before-dbcheck.ldif
165 if [ "$?" != "0" ]; then
169 TZ
=UTC
$ldbsearch -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb cn
=ops_run_anything2
-s one
-b OU
=SUDOers
,DC
=release-4-1-0rc3
,DC
=samba
,DC
=corp \
* replpropertymetadata
--sorted --show-binary |
grep -v originating_change_time|
grep -v whenChanged
> $tmpldif
171 # Here we remove originating_change_time and whenChanged as
172 # these are time-dependent, caused by the ldbmodify above.
174 diff $tmpldif $release_dir/expected-replpropertymetadata-before-dbcheck2.ldif
175 if [ "$?" != "0" ]; then
179 TZ
=UTC
$ldbsearch -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb cn
=ops_run_anything3
-s one
-b OU
=SUDOers
,DC
=release-4-1-0rc3
,DC
=samba
,DC
=corp \
* replpropertymetadata
--sorted --show-binary > $tmpldif
180 diff $tmpldif $release_dir/expected-replpropertymetadata-before-dbcheck3.ldif
181 if [ "$?" != "0" ]; then
188 # This should 'fail', because it returns the number of modified records
190 $PYTHON $BINDIR/samba-tool dbcheck
--cross-ncs --fix --yes -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb $@
193 check_expected_after_values
() {
194 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
195 tmpldif
=$PREFIX_ABS/$RELEASE/expected-replpropertymetadata-before-dbcheck.ldif.tmp
196 TZ
=UTC
$ldbsearch -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb cn
=ops_run_anything
-s one
-b OU
=SUDOers
,DC
=release-4-1-0rc3
,DC
=samba
,DC
=corp \
* replpropertymetadata
--sorted --show-binary > $tmpldif
197 diff $tmpldif $release_dir/expected-replpropertymetadata-after-dbcheck.ldif
198 if [ "$?" != "0" ]; then
201 TZ
=UTC
$ldbsearch -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb cn
=ops_run_anything2
-s one
-b OU
=SUDOers
,DC
=release-4-1-0rc3
,DC
=samba
,DC
=corp \
* replpropertymetadata
--sorted --show-binary |
grep -v originating_change_time|
grep -v whenChanged
> $tmpldif
202 diff $tmpldif $release_dir/expected-replpropertymetadata-after-dbcheck2.ldif
203 if [ "$?" != "0" ]; then
206 TZ
=UTC
$ldbsearch -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb cn
=ops_run_anything3
-s one
-b OU
=SUDOers
,DC
=release-4-1-0rc3
,DC
=samba
,DC
=corp \
* replpropertymetadata
--sorted --show-binary > $tmpldif
207 diff $tmpldif $release_dir/expected-replpropertymetadata-after-dbcheck3.ldif
208 if [ "$?" != "0" ]; then
215 check_forced_duplicate_values
() {
216 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
217 ldif
=$release_dir/forced-duplicate-value-for-dbcheck.ldif
218 TZ
=UTC
$ldbmodify -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb.d
/DC
%3DRELEASE-4-1-0RC3
,DC
%3DSAMBA
,DC
%3DCORP.ldb
$ldif
219 if [ "$?" != "0" ]; then
227 # This should 'fail', because it returns the number of modified records
228 dbcheck_after_dup
() {
229 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
230 $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 $@
236 check_expected_after_dup_values
() {
237 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
238 tmpldif
=$PREFIX_ABS/$RELEASE/expected-otherphone-after-dbcheck.ldif.tmp
239 TZ
=UTC
$ldbsearch -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb cn
=administrator
-s base
-b cn
=administrator
,cn
=users
,DC
=release-4-1-0rc3
,DC
=samba
,DC
=corp otherHomePhone
--sorted --show-binary |
grep -v \
# | sort > $tmpldif
240 diff $tmpldif $release_dir/expected-otherphone-after-dbcheck.ldif
241 if [ "$?" != "0" ]; then
248 # But having fixed it all up, this should pass
250 $PYTHON $BINDIR/samba-tool dbcheck
--cross-ncs -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb $@
253 # This should 'fail', because it returns the number of modified records.
254 # We don't need to run this against 4.1 releases
255 dbcheck_acl_reset
() {
256 if [ x
$RELEASE = x
"release-4-0-0" -o x
$RELEASE = x
"alpha13" ]; then
257 $PYTHON $BINDIR/samba-tool dbcheck
--reset-well-known-acls --cross-ncs --fix --yes -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb $@
262 # But having fixed it all up, this should pass.
263 # We don't need to run this against 4.1.0rc3
264 dbcheck_acl_reset_clean
() {
265 if [ x
$RELEASE != x
"release-4-1-0rc3" ]; then
266 $PYTHON $BINDIR/samba-tool dbcheck
--reset-well-known-acls --cross-ncs -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb $@
270 # This should 'fail', because it returns the number of modified records
272 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
273 $PYTHON $BINDIR/samba-tool dbcheck
--cross-ncs --fix --yes -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb $@
278 # But having fixed it all up, this should pass
280 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
281 $PYTHON $BINDIR/samba-tool dbcheck
--cross-ncs -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb $@
285 rm_deleted_objects
() {
286 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
287 TZ
=UTC
$ldbdel -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb.d
/DC
%3DRELEASE-4-1-0RC3
,DC
%3DSAMBA
,DC
%3DCORP.ldb
'CN=Deleted Objects,DC=RELEASE-4-1-0RC3,DC=SAMBA,DC=CORP'
288 if [ "$?" != "0" ]; then
295 # This should 'fail', because it returns the number of modified records
297 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
298 $PYTHON $BINDIR/samba-tool dbcheck
--cross-ncs --fix --yes -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb $@
303 # But having fixed it all up, this should pass
305 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
306 $PYTHON $BINDIR/samba-tool dbcheck
--cross-ncs -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb $@
310 check_expected_after_deleted_objects
() {
311 if [ x
$RELEASE = x
"release-4-1-0rc3" ]; then
312 tmpldif
=$PREFIX_ABS/$RELEASE/expected-deleted_objects-after-dbcheck.ldif.tmp
313 TZ
=UTC
$ldbsearch -H tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb cn
=deleted\ objects
-s base
-b cn
=deleted\ objects
,DC
=release-4-1-0rc3
,DC
=samba
,DC
=corp objectClass description isDeleted isCriticalSystemObject objectGUID showInAdvancedViewOnly systemFlags
--sorted --show-binary --show-deleted |
grep -v \
# | sort > $tmpldif
314 diff $tmpldif $release_dir/expected-deleted_objects-after-dbcheck.ldif
315 if [ "$?" != "0" ]; then
322 referenceprovision
() {
323 if [ x
$RELEASE == x
"release-4-0-0" ]; then
324 $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
329 if [ x
$RELEASE == x
"release-4-0-0" ]; then
330 $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
335 if [ x
$RELEASE == x
"release-4-0-0" ]; then
336 $PYTHON $BINDIR/samba-tool ldapcmp tdb
://$PREFIX_ABS/${RELEASE}_reference
/private
/sam.ldb tdb
://$PREFIX_ABS/${RELEASE}/private
/sam.ldb
--two --sd --skip-missing-dn
340 if [ -d $release_dir ]; then
341 testit
$RELEASE undump
342 testit
"reindex" reindex
343 testit
"current_version_mod" do_current_version_mod
344 testit
"check_expected_before_values" check_expected_before_values
345 testit_expect_failure
"dbcheck" dbcheck
346 testit
"check_expected_after_values" check_expected_after_values
347 testit
"check_forced_duplicate_values" check_forced_duplicate_values
348 testit_expect_failure
"dbcheck_after_dup" dbcheck_after_dup
349 testit
"check_expected_after_dup_values" check_expected_after_dup_values
350 testit
"dbcheck_clean" dbcheck_clean
351 testit_expect_failure
"dbcheck_acl_reset" dbcheck_acl_reset
352 testit
"dbcheck_acl_reset_clean" dbcheck_acl_reset_clean
353 testit
"add_userparameters0" add_userparameters1
354 testit
"add_userparameters1" add_userparameters1
355 testit
"add_userparameters2" add_userparameters2
356 testit
"add_userparameters3" add_userparameters3
357 testit_expect_failure
"dbcheck2" dbcheck2
358 testit
"dbcheck_clean2" dbcheck_clean2
359 testit
"rm_deleted_objects" rm_deleted_objects
360 testit_expect_failure
"dbcheck3" dbcheck3
361 testit
"dbcheck_clean3" dbcheck_clean3
362 testit
"check_expected_after_deleted_objects" check_expected_after_deleted_objects
363 testit
"referenceprovision" referenceprovision
364 testit
"ldapcmp" ldapcmp
365 testit
"ldapcmp_sd" ldapcmp_sd
367 subunit_start_test
$RELEASE
368 subunit_skip_test
$RELEASE <<EOF
372 subunit_start_test
"reindex"
373 subunit_skip_test
"reindex" <<EOF
376 subunit_start_test check_expected_before_values
377 subunit_skip_test check_expected_before_values
<<EOF
380 subunit_start_test
"dbcheck"
381 subunit_skip_test
"dbcheck" <<EOF
384 subunit_start_test
"dbcheck_clean"
385 subunit_skip_test
"dbcheck_clean" <<EOF
388 subunit_start_test check_expected_after_values
389 subunit_skip_test check_expected_after_values
<<EOF
392 subunit_start_test
"dbcheck_acl_reset"
393 subunit_skip_test
"dbcheck_acl_reset" <<EOF
396 subunit_start_test
"dbcheck_clean_acl_reset"
397 subunit_skip_test
"dbcheck_clean_acl_reset" <<EOF
400 subunit_start_test add_userparameters0
401 subunit_skip_test add_userparameters0
<<EOF
405 subunit_start_test add_userparameters1
406 subunit_skip_test add_userparameters1
<<EOF
410 subunit_start_test add_userparameters2
411 subunit_skip_test add_userparameters2
<<EOF
415 subunit_start_test add_userparameters3
416 subunit_skip_test add_userparameters3
<<EOF
420 subunit_start_test check_expected_before_values
421 subunit_skip_test check_expected_before_values
<<EOF
425 subunit_start_test
"dbcheck2"
426 subunit_skip_test
"dbcheck2" <<EOF
430 subunit_start_test
"referenceprovision"
431 subunit_skip_test
"referenceprovision" <<EOF
434 subunit_start_test
"ldapcmp"
435 subunit_skip_test
"ldapcmp" <<EOF
438 subunit_start_test
"ldapcmp_sd"
439 subunit_skip_test
"ldapcmp_sd" <<EOF
444 if [ -d $PREFIX_ABS/${RELEASE} ]; then
445 rm -fr $PREFIX_ABS/${RELEASE}
448 if [ -d $PREFIX_ABS/${RELEASE}_reference
]; then
449 rm -fr $PREFIX_ABS/${RELEASE}_reference