about summary refs log tree commit diff stats
path: root/tests/by-name/em
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-11 11:57:54 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-12 14:39:08 +0200
commit8c57406bfb8e75bb1574a303941560cea207506e (patch)
tree51d9b63b78ef0764513ae5986240442f72c93f1a /tests/by-name/em
parentmodules/stalwart-mail: Make `cfg.principals` nullable (diff)
downloadnixos-server-8c57406bfb8e75bb1574a303941560cea207506e.zip
modules/stalwart-mail: Explicitly list out valid password hashes stalwart
If a password hash does not match stalwart's know ones, it will just
treat it as plaintext. This is obviously very bad, and should be
avoided.
Diffstat (limited to 'tests/by-name/em')
-rw-r--r--tests/by-name/em/email-dns/test.nix4
-rw-r--r--tests/by-name/em/email-ip/test.nix4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/by-name/em/email-dns/test.nix b/tests/by-name/em/email-dns/test.nix
index 32447ae..c56eb0b 100644
--- a/tests/by-name/em/email-dns/test.nix
+++ b/tests/by-name/em/email-dns/test.nix
@@ -44,7 +44,7 @@ in
         {
           class = "individual";
           name = "bob";
-          secret = "bob-password";
+          secret = "{PLAIN}bob-password";
           email = ["bob@bob.com"];
         };
 
@@ -53,7 +53,7 @@ in
         {
           class = "individual";
           name = "alice";
-          secret = "alice-password";
+          secret = "{PLAIN}alice-password";
           email = ["alice@alice.com"];
         };
 
diff --git a/tests/by-name/em/email-ip/test.nix b/tests/by-name/em/email-ip/test.nix
index 688cd8f..dabc404 100644
--- a/tests/by-name/em/email-ip/test.nix
+++ b/tests/by-name/em/email-ip/test.nix
@@ -113,13 +113,13 @@ in
               {
                 class = "individual";
                 name = "alice";
-                secret = "alice-password";
+                secret = "{PLAIN}alice-password";
                 email = ["alice@${domain}"];
               }
               {
                 class = "individual";
                 name = "bob";
-                secret = "bob-password";
+                secret = "{PLAIN}bob-password";
                 email = ["bob@${domain}"];
               }
             ];