diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-11-12 14:22:47 +1300 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2021-11-18 06:40:13 +0000 |
commit | ff3798418e8a77492d50dfd32deed4f11f7ba7ce (patch) | |
tree | e08e618676dcded8b1a58417039443583396b7bc /source4 | |
parent | 9bef6bc6cf027c3b61498b4944388940e23e7a1c (diff) | |
download | samba-ff3798418e8a77492d50dfd32deed4f11f7ba7ce.tar.gz |
CVE-2020-25717: tests/krb5: Add a test for idmap_nss mapping users to SIDs
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14901
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
[metze@samba.org removed unused tests for a feature that
was removed before merging]
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 494bf7de6ff3e9abeb3753df0635737b80ce5bb7)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/selftest/tests.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 5e4d0e704e4..e96d2fc4b3f 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -883,6 +883,22 @@ planoldpythontestsuite("ad_member_idmap_nss:local", 'ADMIN_PASSWORD': '$DC_PASSWORD', 'STRICT_CHECKING': '0' }) +planoldpythontestsuite("ad_member_idmap_nss:local", + "samba.tests.krb5.test_idmap_nss", + environ={ + 'ADMIN_USERNAME': '$DC_USERNAME', + 'ADMIN_PASSWORD': '$DC_PASSWORD', + 'MAPPED_USERNAME': 'bob', + 'MAPPED_PASSWORD': 'Secret007', + 'UNMAPPED_USERNAME': 'jane', + 'UNMAPPED_PASSWORD': 'Secret007', + 'INVALID_USERNAME': 'joe', + 'INVALID_PASSWORD': 'Secret007', + 'STRICT_CHECKING': '0', + 'FAST_SUPPORT': have_fast_support, + 'TKT_SIG_SUPPORT': tkt_sig_support, + 'EXPECT_PAC': expect_pac + }) for env in ["ad_dc", smbv1_disabled_testenv]: planoldpythontestsuite(env, "samba.tests.smb", extra_args=['-U"$USERNAME%$PASSWORD"']) |