From 6240022488464deee8ac5924059a593e377bc538 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 31 May 2018 21:16:31 +0200 Subject: tests: Check pam_winbind pw change with different options Pair-Programmed-With: Andreas Schneider Signed-off-by: Mathieu Parent Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Tue Oct 2 17:30:29 CEST 2018 on sn-devel-144 --- selftest/tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'selftest/tests.py') diff --git a/selftest/tests.py b/selftest/tests.py index 207335a4937..daa3bb7390c 100644 --- a/selftest/tests.py +++ b/selftest/tests.py @@ -40,6 +40,7 @@ finally: have_man_pages_support = ("XSLTPROC_MANPAGES" in config_hash) with_pam = ("WITH_PAM" in config_hash) pam_wrapper_so_path = config_hash["LIBPAM_WRAPPER_SO_PATH"] +pam_set_items_so_path = config_hash["PAM_SET_ITEMS_SO_PATH"] planpythontestsuite("none", "samba.tests.source", py3_compatible=True) if have_man_pages_support: @@ -167,6 +168,15 @@ if with_pam: [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"), valgrindify(python), pam_wrapper_so_path, "$DOMAIN", "$DC_USERNAME", "$DC_PASSWORD"]) + + for pam_options in ["''", "use_authtok", "try_authtok"]: + plantestsuite("samba.tests.pam_winbind_chauthtok with options %s" % pam_options, "ad_member", + [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind_chauthtok.sh"), + valgrindify(python), pam_wrapper_so_path, pam_set_items_so_path, + "$DOMAIN", "TestPamOptionsUser", "oldp@ssword0", "newp@ssword0", + pam_options, 'yes', + "$DC_SERVER", "$DC_USERNAME", "$DC_PASSWORD"]) + plantestsuite("samba.tests.pam_winbind_warn_pwd_expire(domain)", "ad_member", [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind_warn_pwd_expire.sh"), valgrindify(python), pam_wrapper_so_path, -- cgit v1.2.1