From: Noel Power Date: Mon, 16 Dec 2019 17:08:35 +0000 (+0000) Subject: s4/selftest: Modify samba4.blackbox.chgdcpass to use smbclient(s3) X-Git-Tag: ldb-2.2.0~1022 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c83fafacbb60b5a09a74b9c16eb9878b85872fc2;p=thirdparty%2Fsamba.git s4/selftest: Modify samba4.blackbox.chgdcpass to use smbclient(s3) Test was using smbclient4 but this fails when used in environments that don't support SMB1. We use smbclient(s3) instead. There remains one failure due to behaviour differences between the smbclients. The behavioural changes are related not to SMB1/SMB2 but commits d4ea637eb869e0c3540140b7ae04c2b483f7693c & fce66b22ea312abb252fb9dc748b3adc6fbab49f Perhaps we need to modify s3 smbclient in a similar way? This is however something that deserves further discussion. Move this failing part to a knownfail for the moment. Also the corrosponding entry in skip_smb1_fail has been removed Signed-off-by: Noel Power Reviewed-by: Ralph Boehme --- diff --git a/selftest/knownfail b/selftest/knownfail index 51efa4bdd58..1e2deab5f79 100644 --- a/selftest/knownfail +++ b/selftest/knownfail @@ -61,6 +61,11 @@ ^samba3.base.delete.deltest16a ^samba3.base.delete.deltest17a ^samba3.unix.whoami anonymous connection.whoami\(ad_dc_smb1\) # We need to resolve if we should be including SID_NT_WORLD and SID_NT_NETWORK in this token +# smbclient4 behaves differently from smbclient (s3) when encountering +# logon failures when possesing a valid ticket. Test below has been +# changed to use smbclient (in order to support SMB2) and this part of the +# test fails due to this difference +^samba4.blackbox.chgdcpass.Test login with kerberos ccache after 2nd password change\(chgdcpass\) # these show that we still have some differences between our system # with our internal iconv because it passes except when we bypass our # internal iconv modules diff --git a/selftest/skip_smb1_fails b/selftest/skip_smb1_fails index 14e94850efa..fb99dee11cb 100644 --- a/selftest/skip_smb1_fails +++ b/selftest/skip_smb1_fails @@ -26,7 +26,6 @@ ^samba3.unix.whoami machine account\(ad_member:local\) ^samba3.unix.whoami\(nt4_member\) ^samba3.unix.whoami ntlm user@realm\(ad_member\) -^samba4.blackbox.chgdcpass\(chgdcpass\) ^samba4.blackbox.smbclient\(ad_member:local\)\(ad_member:local\) ^samba4.blackbox.smbclient\(chgdcpass:local\)\(chgdcpass:local\) ^samba4.ldap.nested-search\(ad_dc_default\) diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 0911fd12f55..13b285b44bc 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -507,7 +507,7 @@ plantestsuite("samba4.blackbox.locktest(ad_dc_ntvfs)", "ad_dc_ntvfs", [os.path.j plantestsuite("samba4.blackbox.masktest", "ad_dc_ntvfs", [os.path.join(samba4srcdir, "torture/tests/test_masktest.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$DOMAIN', '$PREFIX']) plantestsuite("samba4.blackbox.gentest(ad_dc_ntvfs)", "ad_dc_ntvfs", [os.path.join(samba4srcdir, "torture/tests/test_gentest.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$DOMAIN', "$PREFIX"]) plantestsuite("samba4.blackbox.rfc2307_mapping(ad_dc_ntvfs:local)", "ad_dc_ntvfs:local", [os.path.join(samba4srcdir, "../nsswitch/tests/test_rfc2307_mapping.sh"), '$DOMAIN', '$USERNAME', '$PASSWORD', "$SERVER", "$UID_RFC2307TEST", "$GID_RFC2307TEST", configuration]) -plantestsuite("samba4.blackbox.chgdcpass", "chgdcpass", [os.path.join(bbdir, "test_chgdcpass.sh"), '$SERVER', "CHGDCPASS\$", '$REALM', '$DOMAIN', '$PREFIX/chgdcpass', "aes256-cts-hmac-sha1-96", '$PREFIX/chgdcpass', smbclient4]) +plantestsuite("samba4.blackbox.chgdcpass", "chgdcpass", [os.path.join(bbdir, "test_chgdcpass.sh"), '$SERVER', "CHGDCPASS\$", '$REALM', '$DOMAIN', '$PREFIX/chgdcpass', "aes256-cts-hmac-sha1-96", '$PREFIX/chgdcpass', smbclient3]) plantestsuite("samba4.blackbox.samba_upgradedns(chgdcpass:local)", "chgdcpass:local", [os.path.join(bbdir, "test_samba_upgradedns.sh"), '$SERVER', '$REALM', '$PREFIX', '$SELFTEST_PREFIX/chgdcpass']) plantestsuite("samba4.blackbox.net_ads", "ad_dc:client", [os.path.join(bbdir, "test_net_ads.sh"), '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$PREFIX_ABS']) plantestsuite("samba4.blackbox.client_etypes_all(ad_dc:client)", "ad_dc:client", [os.path.join(bbdir, "test_client_etypes.sh"), '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD', '$PREFIX_ABS', 'all', '17_18_23'])