From: Stefan Metzmacher Date: Wed, 18 Sep 2024 22:14:56 +0000 (+0200) Subject: s3:test_update_keytab_clustered: add net ads testjoin checks in more places X-Git-Tag: tdb-1.4.13~1198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=690c800c33df4d06d409b9ccfa57e5fa575ab1aa;p=thirdparty%2Fsamba.git s3:test_update_keytab_clustered: add net ads testjoin checks in more places BUG: https://bugzilla.samba.org/show_bug.cgi?id=15714 Signed-off-by: Stefan Metzmacher Reviewed-by: Martin Schwenke --- diff --git a/source3/script/tests/test_update_keytab_clustered.sh b/source3/script/tests/test_update_keytab_clustered.sh index a0016139db5..0fc299d041c 100755 --- a/source3/script/tests/test_update_keytab_clustered.sh +++ b/source3/script/tests/test_update_keytab_clustered.sh @@ -25,6 +25,12 @@ keytabs_sync_kvno="keytab0k keytab1k keytab2k keytab3k" keytabs_nosync_kvno="keytab0 keytab1 keytab2 keytab3" keytabs_all="$keytabs_sync_kvno $keytabs_nosync_kvno" +check_net_ads_testjoin() +{ + UID_WRAPPER_ROOT=1 UID_WRAPPER_INITIAL_RUID=0 UID_WRAPPER_INITIAL_EUID=0 $samba_net ads testjoin + return $? +} + # find the biggest vno and store it into global variable vno get_biggest_vno() { @@ -133,6 +139,8 @@ global_inject_conf=$(dirname $SMB_CONF_PATH)/global_inject.conf echo "sync machine password script = $PREFIX_ABS/clusteredmember/updatekeytab.sh" >$global_inject_conf UID_WRAPPER_ROOT=1 $smbcontrol winbindd reload-config +testit "net_ads_testjoin_initial" check_net_ads_testjoin || failed=$((failed + 1)) + # To have both old and older password we do one unnecessary password change: testit "wbinfo_change_secret_initial" \ "$samba_wbinfo" --change-secret --domain="${DOMAIN}" \ @@ -145,12 +153,14 @@ testit "wbinfo_check_secret_initial" \ # Create/sync all keytabs testit "net_ads_keytab_sync" test_keytab_create || failed=$((failed + 1)) -testit "wbinfo_change_secret" \ +testit "net_ads_testjoin_after_sync" check_net_ads_testjoin || failed=$((failed + 1)) + +testit "wbinfo_change_secret_after_sync" \ test_pwd_change "wbinfo_changesecret" \ "$samba_wbinfo --change-secret --domain=${DOMAIN}" \ || failed=$((failed + 1)) -testit "wbinfo_check_secret" \ +testit "wbinfo_check_secret_after_sync" \ "$samba_wbinfo" --check-secret --domain="${DOMAIN}" \ || failed=$((failed + 1)) @@ -159,6 +169,8 @@ test_smbclient "Test machine login with the changed secret" \ --machine-pass || failed=$((failed + 1)) +testit "net_ads_testjoin_final" check_net_ads_testjoin || failed=$((failed + 1)) + echo "" >$global_inject_conf UID_WRAPPER_ROOT=1 $smbcontrol winbindd reload-config