git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/prosody: add authentication option (fixes #53134)

Passwords should not be stored in plain text by default. On existing installations the next time a users user accounts will automatically be upgraded from plain to hashed one-by-one as they log in.

commit387d85b2716baf12977ee04f76ac90f9cc3d04ea authorMilan Pässler <me@pbb.lc> dateThu 3 Jan 2019, 13:37 (8 years ago) parent3556df6
1 file changed+8
nixos/modules/services/networking/prosody.nix+8
nixos/modules/services/networking/prosody.nix+8
@@ -422,6 +422,13 @@ in
422422 description = "List of administrators of the current host";
423423 };
424424
425+ authentication = mkOption {
426+ type = types.enum [ "internal_plain" "internal_hashed" "cyrus" "anonymous" ];
427+ default = "internal_hashed";
428+ example = "internal_plain";
429+ description = "Authentication mechanism used for logins.";
430+ };
431+
425432 extraConfig = mkOption {
426433 type = types.lines;
427434 default = "";
@@ -477,6 +484,7 @@ in
477484
478485 s2s_secure_domains = ${toLua cfg.s2sSecureDomains}
479486
487+ authentication = ${toLua cfg.authentication}
480488
481489 ${ cfg.extraConfig }
482490