Skip to content

Commit 9666d43

Browse files
committed
dovecot: avoid testing DES-encrypted passwords
1 parent 7c9f493 commit 9666d43

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

nixos/doc/manual/release-notes/rl-2305.section.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In addition to numerous new and upgraded packages, this release has the followin
2222

2323
- `nixos-rebuild` now supports an extra `--specialisation` option that can be used to change specialisation for `switch` and `test` commands.
2424

25-
- `libxcrypt`, the library providing the `crypt(3)` password hashing function, is now built without support for algorithms not flagged [`strong`](https://github.com/besser82/libxcrypt/blob/v4.4.33/lib/hashes.conf#L48). This affects the availability of password hashing algorithms used for system login (`login(1)`, `passwd(1)`), but also Apache2 Basic-Auth, Samba, OpenLDAP, and [many other packages](https://github.com/search?q=repo%3ANixOS%2Fnixpkgs%20libxcrypt&type=code).
25+
- `libxcrypt`, the library providing the `crypt(3)` password hashing function, is now built without support for algorithms not flagged [`strong`](https://github.com/besser82/libxcrypt/blob/v4.4.33/lib/hashes.conf#L48). This affects the availability of password hashing algorithms used for system login (`login(1)`, `passwd(1)`), but also Apache2 Basic-Auth, Samba, OpenLDAP, Dovecot, and [many other packages](https://github.com/search?q=repo%3ANixOS%2Fnixpkgs%20libxcrypt&type=code).
2626

2727
## New Services {#sec-release-23.05-new-services}
2828

pkgs/servers/mail/dovecot/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ stdenv.mkDerivation rec {
4141
sed -i -s -E 's!\bcat\b!${coreutils}/bin/cat!g' src/lib-smtp/test-bin/*.sh
4242
4343
patchShebangs src/config/settings-get.pl
44+
45+
# DES-encrypted passwords are not supported by NixPkgs anymore
46+
sed '/test_password_scheme("CRYPT"/d' -i src/auth/test-libpassword.c
4447
'' + lib.optionalString stdenv.isLinux ''
4548
export systemdsystemunitdir=$out/etc/systemd/system
4649
'';

0 commit comments

Comments
 (0)