[SCM] Samba Shared Repository - branch master updated

Pavel Filipensky pfilipensky at samba.org
Mon Aug 22 21:31:02 UTC 2022


The branch, master has been updated
       via  339e78f2075 gitlab-ci: Add a shellcheck runner
       via  f12aa54ba0d testprogs: Fix shellcheck errors in upgradeprovision-oldrelease.sh
       via  c4ba21bc770 testprogs: Fix shellcheck errors in test_wintest.sh
       via  355f620653f testprogs: Fix shellcheck errors in test_weak_crypto_server.sh
       via  cd24e2dfb79 testprogs: Fix shellchecks errors in test_pdbtest.sh
       via  150cbc0f3a9 testprogs: Fix shellcheck errors in test_password_settings.sh
       via  d9ebb77c11e testprogs: Fix shellcheck errors in test_kpasswd_heimdal.sh
       via  1e4ea99e5ff testprogs: Fix shellcheck errors in test_kinit_trusts_mit.sh
       via  391d0cf667d testprogs: Fix shellcheck errors in test_kinit_heimdal.sh
       via  4aa50e72b04 testprogs: Fix shellcheck errors in test_kinit_trusts_heimdal.sh
       via  4ce5d8df254 testprogs: Fix shellcheck errors in test_kinit_mit.sh
       via  e4a4ce9cc8e testprogs: Fix shellcheck errors in test_export_keytab_mit.sh
       via  edf0433204e testprogs: Fix shellcheck errors in test_export_keytab_heimdal.sh
       via  5dd28adeea9 testprogs: Fix shellcheck errors in test_chgdcpass.sh
       via  447e6b92910 testprogs: Fix shellcheck errors in dbcheck-oldrelease.sh
       via  4b19bbaa93a s4:utils: Fix shellcheck errors in test_samba_tool.sh
       via  cbf1f8904bc s4:torture: Fix shellcheck errors in test_masktest.sh
       via  0618bd8a6c9 s4:tortue: Fix shellcheck errors in test_locktest.sh
       via  7a89d22bed3 s4:torture: Fix shellcheck errors in test_gentest.sh
       via  8c1c63aab82 s4:selftest: Fix shellcheck errors in wintest_rpc.sh
      from  b7a024e4ef8 s4:selftest: Fix shellcheck errors in wintest_net.sh

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 339e78f2075a7c0bbf780063597892ba56dac390
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Feb 21 11:36:39 2022 +0100

    gitlab-ci: Add a shellcheck runner
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>
    
    Autobuild-User(master): Pavel Filipensky <pfilipensky at samba.org>
    Autobuild-Date(master): Mon Aug 22 21:30:09 UTC 2022 on sn-devel-184

commit f12aa54ba0d38fc5c6412a3cfb9152af969258ac
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 16:11:31 2022 +0200

    testprogs: Fix shellcheck errors in upgradeprovision-oldrelease.sh
    
    testprogs/blackbox/upgradeprovision-oldrelease.sh:134:103: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/upgradeprovision-oldrelease.sh:140:117: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/upgradeprovision-oldrelease.sh:145:105: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/upgradeprovision-oldrelease.sh:151:122: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/upgradeprovision-oldrelease.sh:156:110: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/upgradeprovision-oldrelease.sh:162:134: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit c4ba21bc770e17139edf052dc55fd9dd9485b134
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 16:08:40 2022 +0200

    testprogs: Fix shellcheck errors in test_wintest.sh
    
    testprogs/blackbox/test_wintest.sh:15:97: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_wintest.sh:40:31: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 355f620653fdc377673fde146e369c243bc9098f
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 16:07:21 2022 +0200

    testprogs: Fix shellcheck errors in test_weak_crypto_server.sh
    
    testprogs/blackbox/test_weak_crypto_server.sh:59:65: error: Use braces
    when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
    [SC1087]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit cd24e2dfb792d261814d88517eb893cb8d50ab75
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 16:03:39 2022 +0200

    testprogs: Fix shellchecks errors in test_pdbtest.sh
    
    testprogs/blackbox/test_pdbtest.sh:61:53: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:73:157: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:76:79: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:78:92: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:80:79: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:90:79: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:92:75: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:96:73: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:100:99: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:104:89: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:111:125: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_pdbtest.sh:115:70: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 150cbc0f3a9887f569416f0eab5e10b3aeaee998
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:58:34 2022 +0200

    testprogs: Fix shellcheck errors in test_password_settings.sh
    
    testprogs/blackbox/test_password_settings.sh:48:57: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit d9ebb77c11e11cf0d3cbbbc6943d5941c89a004a
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:57:35 2022 +0200

    testprogs: Fix shellcheck errors in test_kpasswd_heimdal.sh
    
    testprogs/blackbox/test_kpasswd_heimdal.sh:46:57: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 1e4ea99e5ff0332e1409d7c1789fa92fd00d0818
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:55:25 2022 +0200

    testprogs: Fix shellcheck errors in test_kinit_trusts_mit.sh
    
    testprogs/blackbox/test_kinit_trusts_mit.sh:55:63: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_trusts_mit.sh:109:106: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 391d0cf667d9e58aa7539e26ec991870d92a598d
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:52:58 2022 +0200

    testprogs: Fix shellcheck errors in test_kinit_heimdal.sh
    
    testprogs/blackbox/test_kinit_heimdal.sh:83:107: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_heimdal.sh:87:126: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_heimdal.sh:101:126: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_heimdal.sh:103:154: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_heimdal.sh:105:112: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_heimdal.sh:118:195: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_heimdal.sh:145:154: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_heimdal.sh:217:122: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_heimdal.sh:251:116: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 4aa50e72b048a299d1fdeca953cf9965bdb2093b
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:48:39 2022 +0200

    testprogs: Fix shellcheck errors in test_kinit_trusts_heimdal.sh
    
    testprogs/blackbox/test_kinit_trusts_heimdal.sh:80:114: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 4ce5d8df254ae565a179c5c41e672538a8ded663
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:47:20 2022 +0200

    testprogs: Fix shellcheck errors in test_kinit_mit.sh
    
    testprogs/blackbox/test_kinit_mit.sh:54:62: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_mit.sh:110:107: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_mit.sh:114:126: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_mit.sh:128:126: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_mit.sh:130:154: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_mit.sh:132:118: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_mit.sh:164:195: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_mit.sh:201:154: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_mit.sh:263:122: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_kinit_mit.sh:301:116: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit e4a4ce9cc8e4b0aeb9a3fcc016fee40d0197038f
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:39:58 2022 +0200

    testprogs: Fix shellcheck errors in test_export_keytab_mit.sh
    
    testprogs/blackbox/test_export_keytab_mit.sh:45:47: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_mit.sh:92:98: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_mit.sh:94:106: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_mit.sh:97:117: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_mit.sh:100:166: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_mit.sh:102:177: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_mit.sh:105:155: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_mit.sh:107:173: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_mit.sh:132:94: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit edf0433204e375619a0158fb61a4b30327435fd1
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:37:11 2022 +0200

    testprogs: Fix shellcheck errors in test_export_keytab_heimdal.sh
    
    testprogs/blackbox/test_export_keytab_heimdal.sh:65:79: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_heimdal.sh:67:102: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_heimdal.sh:69:113: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_heimdal.sh:72:158: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_heimdal.sh:74:169: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_heimdal.sh:77:147: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_heimdal.sh:79:165: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_heimdal.sh:82:178: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_export_keytab_heimdal.sh:112:80: error: Double
    quote array expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 5dd28adeea9c495bb6572a71852403667b4d4818
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:33:55 2022 +0200

    testprogs: Fix shellcheck errors in test_chgdcpass.sh
    
    testprogs/blackbox/test_chgdcpass.sh:48:79: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/test_chgdcpass.sh:49:74: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 447e6b929104b88a10cf29288c0cb7b1c1b386c6
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:31:38 2022 +0200

    testprogs: Fix shellcheck errors in dbcheck-oldrelease.sh
    
    testprogs/blackbox/dbcheck-oldrelease.sh:249:95: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:304:166: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:316:128: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:325:145: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:398:197: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:420:97: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:428:134: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:438:122: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:446:146: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:455:134: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:474:146: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    testprogs/blackbox/dbcheck-oldrelease.sh:483:134: error: Double quote
    array expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 4b19bbaa93a67566519caec1a6f974e6874d84d6
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:27:58 2022 +0200

    s4:utils: Fix shellcheck errors in test_samba_tool.sh
    
    source4/utils/tests/test_samba_tool.sh:38:110: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit cbf1f8904bcbafa3edf323e1e829204d51e070ee
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:27:04 2022 +0200

    s4:torture: Fix shellcheck errors in test_masktest.sh
    
    source4/torture/tests/test_masktest.sh:26:117: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 0618bd8a6c9477ea17defddde42cd43a0a27a422
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 15:25:58 2022 +0200

    s4:tortue: Fix shellcheck errors in test_locktest.sh
    
    source4/torture/tests/test_locktest.sh:26:137: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 7a89d22bed3163a445433197deead42ec5dee4e6
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 11:29:15 2022 +0200

    s4:torture: Fix shellcheck errors in test_gentest.sh
    
    source4/torture/tests/test_gentest.sh:31:235: error: Double quote array
    expansions to avoid re-splitting elements. [SC2068]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

commit 8c1c63aab820897f95d6c5ae2aa65275ddd97e50
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jun 13 11:27:53 2022 +0200

    s4:selftest: Fix shellcheck errors in wintest_rpc.sh
    
    source4/selftest/win/wintest_rpc.sh:61:27: error: Use braces when
    expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087]
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Pavel Filipenský <pfilipensky at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 .gitlab-ci-main.yml                               |  9 +++++++++
 script/autobuild.py                               |  6 ++++++
 source4/selftest/win/wintest_rpc.sh               |  2 +-
 source4/torture/tests/test_gentest.sh             |  2 +-
 source4/torture/tests/test_locktest.sh            |  2 +-
 source4/torture/tests/test_masktest.sh            |  2 +-
 source4/utils/tests/test_samba_tool.sh            |  2 +-
 testprogs/blackbox/dbcheck-oldrelease.sh          | 24 +++++++++++------------
 testprogs/blackbox/test_chgdcpass.sh              |  4 ++--
 testprogs/blackbox/test_export_keytab_heimdal.sh  | 22 ++++++++++++---------
 testprogs/blackbox/test_export_keytab_mit.sh      | 18 ++++++++---------
 testprogs/blackbox/test_kinit_heimdal.sh          | 18 ++++++++---------
 testprogs/blackbox/test_kinit_mit.sh              | 20 +++++++++----------
 testprogs/blackbox/test_kinit_trusts_heimdal.sh   |  2 +-
 testprogs/blackbox/test_kinit_trusts_mit.sh       |  4 ++--
 testprogs/blackbox/test_kpasswd_heimdal.sh        |  2 +-
 testprogs/blackbox/test_password_settings.sh      |  2 +-
 testprogs/blackbox/test_pdbtest.sh                | 24 +++++++++++------------
 testprogs/blackbox/test_weak_crypto_server.sh     |  2 +-
 testprogs/blackbox/test_wintest.sh                |  4 ++--
 testprogs/blackbox/upgradeprovision-oldrelease.sh | 12 ++++++------
 21 files changed, 101 insertions(+), 82 deletions(-)


Changeset truncated at 500 lines:

diff --git a/.gitlab-ci-main.yml b/.gitlab-ci-main.yml
index a14d8e66fc7..c3174f5f1b5 100644
--- a/.gitlab-ci-main.yml
+++ b/.gitlab-ci-main.yml
@@ -256,6 +256,7 @@ samba-def-build:
   needs:
     - job: samba-def-build
       artifacts: true
+    - job: samba-shellcheck
 
 samba-mit-build:
   extends: .shared_template_build_only
@@ -277,6 +278,7 @@ samba-mit120-build:
   needs:
     - job: samba-mit-build
       artifacts: true
+    - job: samba-shellcheck
 
 .needs_samba-mit120-build:
   extends: .shared_template_test_only
@@ -399,6 +401,13 @@ samba-fips:
   variables:
     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora36}
 
+samba-shellcheck:
+  extends: .shared_template
+  needs:
+  variables:
+    SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora36}
+  stage: build_first
+
 .private_test_only:
   extends: .private_runner_test
   stage: test_private
diff --git a/script/autobuild.py b/script/autobuild.py
index 43e0bd4e681..b7be54024f6 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -1020,6 +1020,12 @@ tasks = {
         ],
     },
 
+    "samba-shellcheck": {
+        "sequence": [
+            ("run", "script/check-shell-scripts.sh ."),
+        ],
+    },
+
     "ldb": {
         "sequence": [
             ("random-sleep", random_sleep(60, 600)),
diff --git a/source4/selftest/win/wintest_rpc.sh b/source4/selftest/win/wintest_rpc.sh
index 03ac6a87558..e1b4fe99506 100755
--- a/source4/selftest/win/wintest_rpc.sh
+++ b/source4/selftest/win/wintest_rpc.sh
@@ -58,7 +58,7 @@ for o in $bind_options; do
 			test_name="$t on $transport with $o"
 
 			$SMBTORTURE_BIN_PATH -U $username%$password \
-				-W $domain $transport:$server[$o] \
+				-W $domain ${transport}:${server}[$o] \
 				$t || on_error "\n$test_name failed."
 		done
 	done
diff --git a/source4/torture/tests/test_gentest.sh b/source4/torture/tests/test_gentest.sh
index 80a1661c11f..ad88bd43083 100755
--- a/source4/torture/tests/test_gentest.sh
+++ b/source4/torture/tests/test_gentest.sh
@@ -28,7 +28,7 @@ all_info.out.fname
 internal_information.out.file_id
 EOF
 
-testit "gentest" $VALGRIND $gentest //$SERVER/test1 //$SERVER/test2 --seed=1 --seedsfile=$PREFIX/gentest_seeds.dat --num-ops=100 --ignore=$PREFIX/gentest.ignore -W "$DOMAIN" --user1="$USERNAME%$PASSWORD" --user2="$USERNAME%$PASSWORD" $@ || failed=$(expr $failed + 1)
+testit "gentest" $VALGRIND $gentest //$SERVER/test1 //$SERVER/test2 --seed=1 --seedsfile=$PREFIX/gentest_seeds.dat --num-ops=100 --ignore=$PREFIX/gentest.ignore -W "$DOMAIN" --user1="$USERNAME%$PASSWORD" --user2="$USERNAME%$PASSWORD" "$@" || failed=$(expr $failed + 1)
 
 rm -f $PREFIX/gentest.ignore
 
diff --git a/source4/torture/tests/test_locktest.sh b/source4/torture/tests/test_locktest.sh
index d55935e3fb9..2342d7af593 100755
--- a/source4/torture/tests/test_locktest.sh
+++ b/source4/torture/tests/test_locktest.sh
@@ -23,6 +23,6 @@ locktest="$samba4bindir/locktest"
 
 . $(dirname $0)/../../../testprogs/blackbox/subunit.sh
 
-testit "locktest" $VALGRIND $locktest //$SERVER/test1 //$SERVER/test2 --num-ops=100 -W "$DOMAIN" --user1="$DOMAIN\\$USERNAME%$PASSWORD" $@ || failed=$(expr $failed + 1)
+testit "locktest" $VALGRIND $locktest //$SERVER/test1 //$SERVER/test2 --num-ops=100 -W "$DOMAIN" --user1="$DOMAIN\\$USERNAME%$PASSWORD" "$@" || failed=$(expr $failed + 1)
 
 exit $failed
diff --git a/source4/torture/tests/test_masktest.sh b/source4/torture/tests/test_masktest.sh
index ab4a07197e0..81adf8a6d7d 100755
--- a/source4/torture/tests/test_masktest.sh
+++ b/source4/torture/tests/test_masktest.sh
@@ -23,6 +23,6 @@ masktest="$samba4bindir/masktest"
 
 . $(dirname $0)/../../../testprogs/blackbox/subunit.sh
 
-testit "masktest" $VALGRIND $masktest //$SERVER/tmp --num-ops=200 --dieonerror -W "$DOMAIN" -U"$USERNAME%$PASSWORD" $@ || failed=$(expr $failed + 1)
+testit "masktest" $VALGRIND $masktest //$SERVER/tmp --num-ops=200 --dieonerror -W "$DOMAIN" -U"$USERNAME%$PASSWORD" "$@" || failed=$(expr $failed + 1)
 
 exit $failed
diff --git a/source4/utils/tests/test_samba_tool.sh b/source4/utils/tests/test_samba_tool.sh
index d45a2333ed1..3b1507e201a 100755
--- a/source4/utils/tests/test_samba_tool.sh
+++ b/source4/utils/tests/test_samba_tool.sh
@@ -35,7 +35,7 @@ testit "Test login with --machine-pass without kerberos" $VALGRIND $smbclient -c
 
 testit "Test login with --machine-pass and kerberos" $VALGRIND $smbclient -c 'ls' $CONFIGURATION //$SERVER/tmp --machine-pass -k
 
-testit "time" $VALGRIND $PYTHON $samba_tool time $SERVER $CONFIGURATION -W "$DOMAIN" -U"$USERNAME%$PASSWORD" $@
+testit "time" $VALGRIND $PYTHON $samba_tool time $SERVER $CONFIGURATION -W "$DOMAIN" -U"$USERNAME%$PASSWORD" "$@"
 
 testit "domain level.show" $VALGRIND $PYTHON $samba_tool domain level show
 
diff --git a/testprogs/blackbox/dbcheck-oldrelease.sh b/testprogs/blackbox/dbcheck-oldrelease.sh
index 2df08ade13f..635ada9414c 100755
--- a/testprogs/blackbox/dbcheck-oldrelease.sh
+++ b/testprogs/blackbox/dbcheck-oldrelease.sh
@@ -246,7 +246,7 @@ check_expected_userparameters()
 
 reindex()
 {
-	$PYTHON $BINDIR/samba-tool dbcheck --reindex -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
+	$PYTHON $BINDIR/samba-tool dbcheck --reindex -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "$@"
 }
 
 do_current_version_mod()
@@ -301,7 +301,7 @@ check_expected_before_values()
 dbcheck_objectclass()
 {
 	if [ x$RELEASE = x"release-4-1-6-partial-object" ]; then
-		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb --attrs=objectclass $@
+		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb --attrs=objectclass "$@"
 	else
 		return 1
 	fi
@@ -313,7 +313,7 @@ dbcheck_deleted_objects()
 	if [ x$RELEASE = x"alpha13" ]; then
 		basedn=$($ldbsearch -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb --scope base -b "" defaultNamingContext | grep -i defaultNamingContext | cut -d\  -f 2)
 
-		$PYTHON $BINDIR/samba-tool dbcheck -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "cn=deleted objects,$basedn" --scope base $@
+		$PYTHON $BINDIR/samba-tool dbcheck -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "cn=deleted objects,$basedn" --scope base "$@"
 	else
 		return 1
 	fi
@@ -322,7 +322,7 @@ dbcheck_deleted_objects()
 # This should 'fail', because it returns the number of modified records
 dbcheck()
 {
-	$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
+	$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "$@"
 }
 
 check_expected_after_values()
@@ -395,7 +395,7 @@ check_forced_duplicate_values()
 dbcheck_after_dup()
 {
 	if [ x$RELEASE = x"release-4-1-0rc3" ]; then
-		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb cn=administrator,cn=users,DC=release-4-1-0rc3,DC=samba,DC=corp $@
+		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --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
@@ -417,7 +417,7 @@ check_expected_after_dup_values()
 # But having fixed it all up, this should pass
 dbcheck_clean()
 {
-	$PYTHON $BINDIR/samba-tool dbcheck --cross-ncs -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
+	$PYTHON $BINDIR/samba-tool dbcheck --cross-ncs -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "$@"
 }
 
 # This should 'fail', because it returns the number of modified records.
@@ -425,7 +425,7 @@ dbcheck_clean()
 dbcheck_acl_reset()
 {
 	if [ x$RELEASE = x"release-4-0-0" -o x$RELEASE = x"alpha13" ]; then
-		$PYTHON $BINDIR/samba-tool dbcheck --reset-well-known-acls --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
+		$PYTHON $BINDIR/samba-tool dbcheck --reset-well-known-acls --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "$@"
 	else
 		return 1
 	fi
@@ -435,7 +435,7 @@ dbcheck_acl_reset()
 dbcheck_acl_reset_clean()
 {
 	if [ x$RELEASE != x"release-4-1-0rc3" ]; then
-		$PYTHON $BINDIR/samba-tool dbcheck --reset-well-known-acls --cross-ncs -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
+		$PYTHON $BINDIR/samba-tool dbcheck --reset-well-known-acls --cross-ncs -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "$@"
 	fi
 }
 
@@ -443,7 +443,7 @@ dbcheck_acl_reset_clean()
 dbcheck2()
 {
 	if [ x$RELEASE = x"release-4-1-0rc3" ]; then
-		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
+		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "$@"
 	else
 		exit 1
 	fi
@@ -452,7 +452,7 @@ dbcheck2()
 dbcheck_clean2()
 {
 	if [ x$RELEASE = x"release-4-1-0rc3" ]; then
-		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
+		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "$@"
 	fi
 }
 
@@ -471,7 +471,7 @@ rm_deleted_objects()
 dbcheck3()
 {
 	if [ x$RELEASE = x"release-4-1-0rc3" ]; then
-		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
+		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "$@"
 	else
 		exit 1
 	fi
@@ -480,7 +480,7 @@ dbcheck3()
 dbcheck_clean3()
 {
 	if [ x$RELEASE = x"release-4-1-0rc3" ]; then
-		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
+		$PYTHON $BINDIR/samba-tool dbcheck --selftest-check-expired-tombstones --cross-ncs -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb "$@"
 	fi
 }
 
diff --git a/testprogs/blackbox/test_chgdcpass.sh b/testprogs/blackbox/test_chgdcpass.sh
index 8b0ef45673f..e20c443d00e 100755
--- a/testprogs/blackbox/test_chgdcpass.sh
+++ b/testprogs/blackbox/test_chgdcpass.sh
@@ -45,8 +45,8 @@ test_drs()
 	shift
 	shift
 	echo "test: $name"
-	echo $VALGRIND $PYTHON $samba4bindir/samba-tool drs $function $SERVER -k yes $@
-	$VALGRIND $PYTHON $samba4bindir/samba-tool drs $function $SERVER -k yes $@
+	echo $VALGRIND $PYTHON $samba4bindir/samba-tool drs $function $SERVER -k yes "$@"
+	$VALGRIND $PYTHON $samba4bindir/samba-tool drs $function $SERVER -k yes "$@"
 	status=$?
 	if [ x$status = x0 ]; then
 		echo "success: $name"
diff --git a/testprogs/blackbox/test_export_keytab_heimdal.sh b/testprogs/blackbox/test_export_keytab_heimdal.sh
index f2cec4c31dc..7c0d92b7cc7 100755
--- a/testprogs/blackbox/test_export_keytab_heimdal.sh
+++ b/testprogs/blackbox/test_export_keytab_heimdal.sh
@@ -62,24 +62,28 @@ test_keytab()
 USERPASS=testPaSS at 01%
 unc="//$SERVER/tmp"
 
-testit "create user locally" $VALGRIND $PYTHON $newuser nettestuser $USERPASS $@ || failed=$(expr $failed + 1)
+testit "create user locally" $VALGRIND $PYTHON $newuser nettestuser $USERPASS "$@" || failed=$(expr $failed + 1)
 
-testit "dump keytab from domain" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab "$@" || failed=$(expr $failed + 1)
 test_keytab "read keytab from domain" "$PREFIX/tmpkeytab" "$SERVER\\\$" 3
-testit "dump keytab from domain (2nd time)" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain (2nd time)" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab "$@" || failed=$(expr $failed + 1)
 test_keytab "read keytab from domain (2nd time)" "$PREFIX/tmpkeytab" "$SERVER\\\$" 3
 
-testit "dump keytab from domain for cifs principal" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-server --principal=cifs/$SERVER_FQDN $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain for cifs principal" $VALGRIND $PYTHON
+$samba_tool domain exportkeytab $PREFIX/tmpkeytab-server --principal=cifs/$SERVER_FQDN "$@" || failed=$(expr $failed + 1)
 test_keytab "read keytab from domain for cifs principal" "$PREFIX/tmpkeytab-server" "cifs/$SERVER_FQDN" 3
-testit "dump keytab from domain for cifs principal (2nd time)" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-server --principal=cifs/$SERVER_FQDN $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain for cifs principal (2nd time)" $VALGRIND $PYTHON
+$samba_tool domain exportkeytab $PREFIX/tmpkeytab-server --principal=cifs/$SERVER_FQDN "$@" || failed=$(expr $failed + 1)
 test_keytab "read keytab from domain for cifs principal (2nd time)" "$PREFIX/tmpkeytab-server" "cifs/$SERVER_FQDN" 3
 
-testit "dump keytab from domain for user principal" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-2 --principal=nettestuser $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain for user principal" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-2 --principal=nettestuser "$@" || failed=$(expr $failed + 1)
 test_keytab "dump keytab from domain for user principal" "$PREFIX/tmpkeytab-2" "nettestuser@$REALM" 3
-testit "dump keytab from domain for user principal (2nd time)" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-2 --principal=nettestuser@$REALM $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain for user principal (2nd time)" $VALGRIND $PYTHON
+$samba_tool domain exportkeytab $PREFIX/tmpkeytab-2 --principal=nettestuser@$REALM "$@" || failed=$(expr $failed + 1)
 test_keytab "dump keytab from domain for user principal (2nd time)" "$PREFIX/tmpkeytab-2" "nettestuser@$REALM" 3
 
-testit "dump keytab from domain for user principal with SPN as UPN" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-3 --principal=http/testupnspn.$DNSDOMAIN $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain for user principal with SPN as UPN" $VALGRIND
+$PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-3 --principal=http/testupnspn.$DNSDOMAIN "$@" || failed=$(expr $failed + 1)
 test_keytab "dump keytab from domain for user principal" "$PREFIX/tmpkeytab-3" "http/testupnspn.$DNSDOMAIN@$REALM" 3
 
 KRB5CCNAME="$PREFIX/tmpuserccache"
@@ -109,7 +113,7 @@ KRB5CCNAME="$PREFIX/tmpadminccache"
 samba4kinit="$samba4kinit_binary -c $KRB5CCNAME"
 export KRB5CCNAME
 
-testit "del user" $VALGRIND $PYTHON $samba_tool user delete nettestuser -k yes $@ || failed=$(expr $failed + 1)
+testit "del user" $VALGRIND $PYTHON $samba_tool user delete nettestuser -k yes "$@" || failed=$(expr $failed + 1)
 
 rm -f $PREFIX/tmpadminccache $PREFIX/tmpuserccache $PREFIX/tmpkeytab $PREFIX/tmpkeytab-2 $PREFIX/tmpkeytab-2 $PREFIX/tmpkeytab-server $PREFIX/tmpspnupnccache
 exit $failed
diff --git a/testprogs/blackbox/test_export_keytab_mit.sh b/testprogs/blackbox/test_export_keytab_mit.sh
index abc6040f1c4..17034f6133c 100755
--- a/testprogs/blackbox/test_export_keytab_mit.sh
+++ b/testprogs/blackbox/test_export_keytab_mit.sh
@@ -42,7 +42,7 @@ test_smbclient()
 	shift
 	shift
 	echo "test: $name"
-	$VALGRIND $smbclient //$SERVER/tmp -c "$cmd" $@
+	$VALGRIND $smbclient //$SERVER/tmp -c "$cmd" "$@"
 	status=$?
 	if [ x$status = x0 ]; then
 		echo "success: $name"
@@ -89,22 +89,22 @@ if [ $krb5_major_version -eq 1 ] && [ $krb5_minor_version -lt 18 ]; then
 	EXPECTED_NKEYS=5
 fi
 
-testit "create local user $TEST_USER" $VALGRIND $PYTHON $samba_newuser $TEST_USER $TEST_PASSWORD $@ || failed=$(expr $failed + 1)
+testit "create local user $TEST_USER" $VALGRIND $PYTHON $samba_newuser $TEST_USER $TEST_PASSWORD "$@" || failed=$(expr $failed + 1)
 
-testit "dump keytab from domain" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-all $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-all "$@" || failed=$(expr $failed + 1)
 test_keytab "read keytab from domain" "$PREFIX/tmpkeytab-all" "$SERVER\\\$" $EXPECTED_NKEYS
 
-testit "dump keytab from domain (2nd time)" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-all $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain (2nd time)" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-all "$@" || failed=$(expr $failed + 1)
 test_keytab "read keytab from domain (2nd time)" "$PREFIX/tmpkeytab-all" "$SERVER\\\$" $EXPECTED_NKEYS
 
-testit "dump keytab from domain for cifs service principal" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-server --principal=cifs/$SERVER_FQDN $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain for cifs service principal" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-server --principal=cifs/$SERVER_FQDN "$@" || failed=$(expr $failed + 1)
 test_keytab "read keytab from domain for cifs service principal" "$PREFIX/tmpkeytab-server" "cifs/$SERVER_FQDN" $EXPECTED_NKEYS
-testit "dump keytab from domain for cifs service principal (2nd time)" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-server --principal=cifs/$SERVER_FQDN $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain for cifs service principal (2nd time)" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-server --principal=cifs/$SERVER_FQDN "$@" || failed=$(expr $failed + 1)
 test_keytab "read keytab from domain for cifs service principal (2nd time)" "$PREFIX/tmpkeytab-server" "cifs/$SERVER_FQDN" $EXPECTED_NKEYS
 
-testit "dump keytab from domain for user principal" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-user-princ --principal=$TEST_USER $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain for user principal" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-user-princ --principal=$TEST_USER "$@" || failed=$(expr $failed + 1)
 test_keytab "dump keytab from domain for user principal" "$PREFIX/tmpkeytab-user-princ" "$TEST_USER@$REALM" $EXPECTED_NKEYS
-testit "dump keytab from domain for user principal (2nd time)" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-user-princ --principal=$TEST_USER@$REALM $@ || failed=$(expr $failed + 1)
+testit "dump keytab from domain for user principal (2nd time)" $VALGRIND $PYTHON $samba_tool domain exportkeytab $PREFIX/tmpkeytab-user-princ --principal=$TEST_USER@$REALM "$@" || failed=$(expr $failed + 1)
 test_keytab "dump keytab from domain for user principal (2nd time)" "$PREFIX/tmpkeytab-user-princ" "$TEST_USER@$REALM" $EXPECTED_NKEYS
 
 KRB5CCNAME="$PREFIX/tmpuserccache"
@@ -129,7 +129,7 @@ echo "$samba_kinit -k -t $PREFIX/tmpkeytab-server cifs/$SERVER_FQDN"
 testit "kinit with SPN from keytab" $VALGRIND $samba_kinit -k -t $PREFIX/tmpkeytab-server cifs/$SERVER_FQDN || failed=$(expr $failed + 1)
 
 # cleanup
-testit "delete user $TEST_USER" $VALGRIND $PYTHON $samba_tool user delete nettestuser -k yes $@ || failed=$(expr $failed + 1)
+testit "delete user $TEST_USER" $VALGRIND $PYTHON $samba_tool user delete nettestuser -k yes "$@" || failed=$(expr $failed + 1)
 
 $samba_kdestroy
 rm -f $PREFIX/tmpadminccache $PREFIX/tmpuserccache $PREFIX/tmpkeytab $PREFIX/tmpkeytab-2 $PREFIX/tmpkeytab-server
diff --git a/testprogs/blackbox/test_kinit_heimdal.sh b/testprogs/blackbox/test_kinit_heimdal.sh
index 2db03da076f..73b002fb1fe 100755
--- a/testprogs/blackbox/test_kinit_heimdal.sh
+++ b/testprogs/blackbox/test_kinit_heimdal.sh
@@ -80,11 +80,11 @@ testit "kinit renew ticket" $samba4kinit $enctype --request-pac -R
 
 test_smbclient "Test login with kerberos ccache" 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || failed=$(expr $failed + 1)
 
-testit "check time with kerberos ccache" $VALGRIND $PYTHON $samba_tool time $SERVER $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "check time with kerberos ccache" $VALGRIND $PYTHON $samba_tool time $SERVER $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)
 
 USERPASS=testPass at 12%
 echo $USERPASS >$PREFIX/tmpuserpassfile
-testit "add user with kerberos ccache" $VALGRIND $PYTHON $samba_tool user create nettestuser $USERPASS $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "add user with kerberos ccache" $VALGRIND $PYTHON $samba_tool user create nettestuser $USERPASS $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)
 
 echo "Getting defaultNamingContext"
 BASEDN=$($ldbsearch $options --basedn='' -H ldap://$SERVER --scope=base DUMMY=x defaultNamingContext | grep defaultNamingContext | awk '{print $2}')
@@ -98,11 +98,11 @@ replace: userPrincipalName
 userPrincipalName: nettest@$REALM
 EOF
 
-testit "modify servicePrincipalName and userPrincpalName" $VALGRIND $ldbmodify -H ldap://$SERVER $PREFIX/tmpldbmodify -k yes $@ || failed=$(expr $failed + 1)
+testit "modify servicePrincipalName and userPrincpalName" $VALGRIND $ldbmodify -H ldap://$SERVER $PREFIX/tmpldbmodify -k yes "$@" || failed=$(expr $failed + 1)
 
-testit "set user password with kerberos ccache" $VALGRIND $PYTHON $samba_tool user setpassword nettestuser --newpassword=$USERPASS $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "set user password with kerberos ccache" $VALGRIND $PYTHON $samba_tool user setpassword nettestuser --newpassword=$USERPASS $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)
 
-testit "enable user with kerberos cache" $VALGRIND $PYTHON $enableaccount nettestuser -H ldap://$SERVER -k yes $@ || failed=$(expr $failed + 1)
+testit "enable user with kerberos cache" $VALGRIND $PYTHON $enableaccount nettestuser -H ldap://$SERVER -k yes "$@" || failed=$(expr $failed + 1)
 
 KRB5CCNAME_PATH="$PREFIX/tmpuserccache"
 KRB5CCNAME="FILE:$KRB5CCNAME_PATH"
@@ -115,7 +115,7 @@ testit "kinit with user password (after enable of user and password change)" $sa
 test_smbclient "Test login with user kerberos ccache" 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || failed=$(expr $failed + 1)
 
 NEWUSERPASS=testPaSS at 34%
-testit "change user password with 'samba-tool user password' (rpc)" $VALGRIND $PYTHON $samba_tool user password -W$DOMAIN -Unettestuser%$USERPASS $CONFIGURATION -k no --newpassword=$NEWUSERPASS $@ || failed=$(expr $failed + 1)
+testit "change user password with 'samba-tool user password' (rpc)" $VALGRIND $PYTHON $samba_tool user password -W$DOMAIN -Unettestuser%$USERPASS $CONFIGURATION -k no --newpassword=$NEWUSERPASS "$@" || failed=$(expr $failed + 1)
 
 echo $NEWUSERPASS >$PREFIX/tmpuserpassfile
 rm -f $KRB5CCNAME_PATH
@@ -142,7 +142,7 @@ replace: userPrincipalName
 userPrincipalName: nettest@$REALM.org
 EOF
 
-testit "modify userPrincipalName to be a different domain" $VALGRIND $ldbmodify $ADMIN_LDBMODIFY_CONFIG $PREFIX/tmpldbmodify $PREFIX/tmpldbmodify -k yes $@ || failed=$(expr $failed + 1)
+testit "modify userPrincipalName to be a different domain" $VALGRIND $ldbmodify $ADMIN_LDBMODIFY_CONFIG $PREFIX/tmpldbmodify $PREFIX/tmpldbmodify -k yes "$@" || failed=$(expr $failed + 1)
 
 rm -f $KRB5CCNAME_PATH
 testit "kinit with password (enterprise style) using UPN" $samba4kinit $enctype --enterprise --password-file=$PREFIX/tmpuserpassfile --request-pac nettest@$REALM.org || failed=$(expr $failed + 1)
@@ -214,7 +214,7 @@ EOF
 USERPASS=$NEWUSERPASS
 NEWUSERPASS=testPaSS at 911%
 
-testit "modify pwdLastSet" $VALGRIND $ldbmodify $ADMIN_LDBMODIFY_CONFIG $PREFIX/tmpldbmodify $PREFIX/tmpldbmodify -k yes $@ || failed=$(expr $failed + 1)
+testit "modify pwdLastSet" $VALGRIND $ldbmodify $ADMIN_LDBMODIFY_CONFIG $PREFIX/tmpldbmodify $PREFIX/tmpldbmodify -k yes "$@" || failed=$(expr $failed + 1)
 
 cat >$PREFIX/tmppasswordchange <<EOF
 expect nettestuser@${REALM}'s Password:
@@ -248,7 +248,7 @@ lowerrealm=$(echo $REALM | tr '[A-Z]' '[a-z]')
 test_smbclient "Test login with user kerberos lowercase realm" 'ls' "$unc" --use-kerberos=required -Unettestuser@$lowerrealm%$NEWUSERPASS || failed=$(expr $failed + 1)
 test_smbclient "Test login with user kerberos lowercase realm 2" 'ls' "$unc" --use-kerberos=required -Unettestuser@$REALM%$NEWUSERPASS --realm=$lowerrealm || failed=$(expr $failed + 1)
 
-testit "del user with kerberos ccache" $VALGRIND $PYTHON $samba_tool user delete nettestuser $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "del user with kerberos ccache" $VALGRIND $PYTHON $samba_tool user delete nettestuser $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)
 
 rm -f $KRB5CCNAME_PATH
 testit "kinit with machineaccountccache script" $PYTHON $machineaccountccache $CONFIGURATION $KRB5CCNAME || failed=$(expr $failed + 1)
diff --git a/testprogs/blackbox/test_kinit_mit.sh b/testprogs/blackbox/test_kinit_mit.sh
index bde140a41f3..8901148898f 100755
--- a/testprogs/blackbox/test_kinit_mit.sh
+++ b/testprogs/blackbox/test_kinit_mit.sh
@@ -51,7 +51,7 @@ test_smbclient()
 	shift
 	shift
 	echo "test: $name"
-	$VALGRIND $smbclient $CONFIGURATION //$SERVER/tmp -c "$cmd" $@
+	$VALGRIND $smbclient $CONFIGURATION //$SERVER/tmp -c "$cmd" "$@"
 	status=$?
 	if [ x$status = x0 ]; then
 		echo "success: $name"
@@ -107,11 +107,11 @@ $samba_kdestroy
 ###########################################################
 
 testit "kinit with password" $samba_texpect $PREFIX/tmpkinitscript $samba_kinit $USERNAME@$REALM || failed=$(expr $failed + 1)
-testit "check time with kerberos ccache" $VALGRIND $PYTHON $samba_tool time $SERVER $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "check time with kerberos ccache" $VALGRIND $PYTHON $samba_tool time $SERVER $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)
 
 USERPASS="testPass at 12%"
 
-testit "add user with kerberos ccache" $VALGRIND $PYTHON $samba_tool user create nettestuser $USERPASS $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "add user with kerberos ccache" $VALGRIND $PYTHON $samba_tool user create nettestuser $USERPASS $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)
 
 echo "Getting defaultNamingContext"
 BASEDN=$($ldbsearch $options --basedn='' -H ldap://$SERVER --scope=base DUMMY=x defaultNamingContext | grep defaultNamingContext | awk '{print $2}')
@@ -125,11 +125,11 @@ replace: userPrincipalName
 userPrincipalName: nettest@$REALM
 EOF
 
-testit "modify servicePrincipalName and userPrincpalName" $VALGRIND $ldbmodify -H ldap://$SERVER $PREFIX/tmpldbmodify -k yes $@ || failed=$(expr $failed + 1)
+testit "modify servicePrincipalName and userPrincpalName" $VALGRIND $ldbmodify -H ldap://$SERVER $PREFIX/tmpldbmodify -k yes "$@" || failed=$(expr $failed + 1)
 
-testit "set user password with kerberos ccache" $VALGRIND $PYTHON $samba_tool user setpassword nettestuser --newpassword=$USERPASS $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "set user password with kerberos ccache" $VALGRIND $PYTHON $samba_tool user setpassword nettestuser --newpassword=$USERPASS $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)
 
-testit "enable user with kerberos cache" $VALGRIND $PYTHON $samba_enableaccount nettestuser -H ldap://$SERVER -k yes $@ || failed=$(expr $failed + 1)
+testit "enable user with kerberos cache" $VALGRIND $PYTHON $samba_enableaccount nettestuser -H ldap://$SERVER -k yes "$@" || failed=$(expr $failed + 1)
 
 ###########################################################
 ### Test kinit with canonicalization
@@ -161,7 +161,7 @@ test_smbclient "Test login with user kerberos ccache" 'ls' --use-krb5-ccache=$KR
 ### Change password
 
 NEWUSERPASS="testPaSS at 34%"
-testit "change user password with 'samba-tool user password' (rpc)" $VALGRIND $PYTHON $samba_tool user password -W$DOMAIN -Unettestuser%$USERPASS $CONFIGURATION -k no --newpassword=$NEWUSERPASS $@ || failed=$(expr $failed + 1)
+testit "change user password with 'samba-tool user password' (rpc)" $VALGRIND $PYTHON $samba_tool user password -W$DOMAIN -Unettestuser%$USERPASS $CONFIGURATION -k no --newpassword=$NEWUSERPASS "$@" || failed=$(expr $failed + 1)
 
 cat >$PREFIX/tmpkinituserpassscript <<EOF
 expect Password for
@@ -198,7 +198,7 @@ replace: userPrincipalName
 userPrincipalName: nettest@$REALM.org
 EOF
 
-testit "modify userPrincipalName to be a different domain" $VALGRIND $ldbmodify $ADMIN_LDBMODIFY_CONFIG $PREFIX/tmpldbmodify $PREFIX/tmpldbmodify -k yes $@ || failed=$(expr $failed + 1)
+testit "modify userPrincipalName to be a different domain" $VALGRIND $ldbmodify $ADMIN_LDBMODIFY_CONFIG $PREFIX/tmpldbmodify $PREFIX/tmpldbmodify -k yes "$@" || failed=$(expr $failed + 1)
 
 testit "kinit with new (enterprise style) using UPN" $samba_texpect $PREFIX/tmpkinituserpassscript $samba_kinit -E nettest@$REALM.org || failed=$(expr $failed + 1)
 test_smbclient "Test login with user kerberos ccache from enterprise UPN" 'ls' --use-krb5-ccache=$KRB5CCNAME || failed=$(expr $failed + 1)
@@ -260,7 +260,7 @@ EOF
 USERPASS=$NEWUSERPASS
 NEWUSERPASS=testPaSS at 911%
 
-testit "modify pwdLastSet" $VALGRIND $ldbmodify $ADMIN_LDBMODIFY_CONFIG $PREFIX/tmpldbmodify $PREFIX/tmpldbmodify -k yes $@ || failed=$(expr $failed + 1)
+testit "modify pwdLastSet" $VALGRIND $ldbmodify $ADMIN_LDBMODIFY_CONFIG $PREFIX/tmpldbmodify $PREFIX/tmpldbmodify -k yes "$@" || failed=$(expr $failed + 1)
 
 cat >$PREFIX/tmpkinituserpassscript <<EOF
 expect Password for
@@ -298,7 +298,7 @@ lowerrealm=$(echo $REALM | tr '[A-Z]' '[a-z]')
 test_smbclient "Test login with user kerberos lowercase realm" 'ls' --use-kerberos=required -Unettestuser@$lowerrealm%$NEWUSERPASS || failed=$(expr $failed + 1)
 test_smbclient "Test login with user kerberos lowercase realm 2" 'ls' --use-kerberos=required -Unettestuser@$REALM%$NEWUSERPASS --realm=$lowerrealm || failed=$(expr $failed + 1)
 
-testit "del user with kerberos ccache" $VALGRIND $PYTHON $samba_tool user delete nettestuser $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "del user with kerberos ccache" $VALGRIND $PYTHON $samba_tool user delete nettestuser $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)
 
 ###########################################################
 ### Test login with machine account
diff --git a/testprogs/blackbox/test_kinit_trusts_heimdal.sh b/testprogs/blackbox/test_kinit_trusts_heimdal.sh
index 552808d8aec..f08acc01378 100755
--- a/testprogs/blackbox/test_kinit_trusts_heimdal.sh
+++ b/testprogs/blackbox/test_kinit_trusts_heimdal.sh
@@ -81,7 +81,7 @@ testit "kinit renew ticket" $samba4kinit $enctype --request-pac -R
 
 test_smbclient "Test login with kerberos ccache" 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || failed=$(expr $failed + 1)
 
-testit "check time with kerberos ccache" $VALGRIND $PYTHON $samba_tool time $SERVER.$REALM $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "check time with kerberos ccache" $VALGRIND $PYTHON $samba_tool time $SERVER.$REALM $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)


-- 
Samba Shared Repository



More information about the samba-cvs mailing list