aboutsummaryrefslogtreecommitdiffstats
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-23 12:10:27 +0200
commitf0f8df8f40cefbfc4d676352a94dbe35cc99a0db (patch)
tree27ed93283e7dbe604a79b85194b54cc2a18449fe /tests/by-name/em
parentmodules/stalwart-mail: Make `cfg.principals` nullable (diff)
downloadnixos-server-f0f8df8f40cefbfc4d676352a94dbe35cc99a0db.zip
modules/stalwart-mail: Explicitly list out valid password hashes
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 6812d32..f0399a5 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}"];
}
];