selftest/tests.py: test pam_winbind with a lot of username variations
authorStefan Metzmacher <metze@samba.org>
Wed, 18 Sep 2019 12:03:34 +0000 (14:03 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 24 Sep 2019 18:30:38 +0000 (18:30 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14124

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
selftest/tests.py

index bb21c5a0c488fc9456fe99306854852d92d83a7c..12eba726e6911be300a75da2e2b2b70253ba824d 100644 (file)
@@ -233,11 +233,36 @@ if with_pam:
                        valgrindify(python), pam_wrapper_so_path,
                        "$SERVER", "$USERNAME", "$PASSWORD",
                        pam_options])
-        plantestsuite("samba.tests.pam_winbind(domain+%s)" % description, env,
+        plantestsuite("samba.tests.pam_winbind(domain1+%s)" % description, env,
                       [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
                        valgrindify(python), pam_wrapper_so_path,
                        "$DOMAIN", "$DC_USERNAME", "$DC_PASSWORD",
                        pam_options])
+        plantestsuite("samba.tests.pam_winbind(domain2+%s)" % description, env,
+                      [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
+                       valgrindify(python), pam_wrapper_so_path,
+                       "$REALM", "$DC_USERNAME", "$DC_PASSWORD",
+                       pam_options])
+        plantestsuite("samba.tests.pam_winbind(domain3+%s)" % description, env,
+                      [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
+                       valgrindify(python), pam_wrapper_so_path,
+                       "''", "${DC_USERNAME}@${DOMAIN}", "$DC_PASSWORD",
+                       pam_options])
+        plantestsuite("samba.tests.pam_winbind(domain4+%s)" % description, env,
+                      [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
+                       valgrindify(python), pam_wrapper_so_path,
+                       "''", "${DC_USERNAME}@${REALM}", "$DC_PASSWORD",
+                       pam_options])
+        plantestsuite("samba.tests.pam_winbind(domain5+%s)" % description, env,
+                      [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
+                       valgrindify(python), pam_wrapper_so_path,
+                       "$REALM", "${DC_USERNAME}@${DOMAIN}", "$DC_PASSWORD",
+                       pam_options])
+        plantestsuite("samba.tests.pam_winbind(domain6+%s)" % description, env,
+                      [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
+                       valgrindify(python), pam_wrapper_so_path,
+                       "$DOMAIN", "${DC_USERNAME}@${REALM}", "$DC_PASSWORD",
+                       pam_options])
 
         for authtok_options in ["", "use_authtok", "try_authtok"]:
             _pam_options = "'%s %s'" % (o["pam_options"], authtok_options)