Commit Graph

70 Commits

Author SHA1 Message Date
Henning Schild
6690e9e3ca radicale/utils: drop bcrypt compat check
We now support passlib and bcrypt5 so the test can be dropped.

Related-to: #1980
Signed-off-by: Henning Schild <henning@hennsch.de>
2026-04-14 19:13:44 +02:00
Henning Schild
80b0aaf24f auth/htpasswd: deal with bcrypt maximum password length
bcrypt < 5 always truncated overlong passwords for us, since version 5
we need to do that on our own or hope our password library does it for
us.

In order to support both passlib and libpass with bcrypt >= 5 we simply
truncate if needed so it does not matter which of the two libraries is
used.

Closes: #1896
Signed-off-by: Henning Schild <henning@hennsch.de>
2026-04-14 18:21:38 +02:00
Peter Bieringer
863d2e14d0 change loglevel 2026-01-10 07:48:55 +01:00
Peter Bieringer
ffb2fb5e78 cosmetics 2026-01-10 07:48:43 +01:00
Peter Bieringer
5214287875 replace too simple autodetection with hash length by proper regular expression 2026-01-08 05:39:44 +01:00
Peter Bieringer
3eb5f32d3d update copyright year 2026-01-06 17:34:43 +01:00
Peter Bieringer
84bf14fd8e add note about bcrypt vs. passlib/libpass 2026-01-06 17:33:02 +01:00
Peter Bieringer
731716856c check whether bcrypt is usuable with passlib/libpass version 2026-01-06 17:32:24 +01:00
Peter Bieringer
6efb627903 fix typo 2026-01-06 17:30:11 +01:00
Peter Bieringer
d1098c3e22 flake8 regression E261 2025-05-16 07:28:50 +02:00
Peter Bieringer
0bcd5d283a argon2: fix typo 2025-04-29 19:44:24 +02:00
Peter Bieringer
7b49bab471 argon2: make isort happy 2025-04-29 19:41:48 +02:00
Peter Bieringer
631f1596ae argon2: make flake8 happy 2025-04-29 19:39:15 +02:00
Peter Bieringer
76b9e89deb argon2: fix not supported auth method detection 2025-04-29 19:26:01 +02:00
Peter Bieringer
d3f1d203d4 argon2: fixes for mypy 2025-04-29 19:22:55 +02:00
Peter Bieringer
3c1593d244 fix typo 2025-04-29 19:18:41 +02:00
Peter Bieringer
2c569492f8 argon2: add support 2025-04-29 19:18:27 +02:00
Peter Bieringer
d5133fccd1 argon2: preparation 2025-04-29 19:15:19 +02:00
Peter Bieringer
323af3368c add info about argon2 support 2025-04-29 19:14:21 +02:00
Peter Bieringer
2ef99e5e85 Fix: auth/htpasswd related to detection and use of bcrypt 2025-03-19 06:17:34 +01:00
Peter Bieringer
3a13ffbc51 forgotten bcrypt pattern extension 2025-03-10 06:00:30 +01:00
Peter Bieringer
3963bb4d82 extend logging, adjust loglevel for hash error 2025-03-09 08:50:53 +01:00
Peter Bieringer
cffb2aaae3 add support for additional bcrypt algo on autodetect, improve autodetect logic and log not matching hash length 2025-03-09 08:49:30 +01:00
Peter Bieringer
95a8899002 quote error message 2025-03-08 17:28:35 +01:00
Peter Bieringer
41ab96e142 catch ValueError on verify, adjust log level for failed logins 2025-03-08 17:27:02 +01:00
Peter Bieringer
a284d18c16 make encryption visible to other functions 2025-03-08 17:26:28 +01:00
Peter Bieringer
cf914450ee remove obsolete code and comment as constant execution time is now done by __init__.py 2025-01-03 07:02:29 +01:00
Peter Bieringer
6f0ac545f0 code fix 2025-01-02 08:08:22 +01:00
Peter Bieringer
0a5ae5b0b4 extend startup logging for htpasswd 2025-01-01 17:31:16 +01:00
Peter Bieringer
5a591b6471 use different token 2025-01-01 16:41:11 +01:00
Peter Bieringer
8604dacad0 fix typing 2025-01-01 16:40:55 +01:00
Peter Bieringer
ca665c4849 add a dummy delay action 2025-01-01 16:32:07 +01:00
Peter Bieringer
8fdbd0dbf6 log cosmetics 2025-01-01 16:31:47 +01:00
Peter Bieringer
46fe98f60b make htpasswd cache optional 2025-01-01 16:31:31 +01:00
Peter Bieringer
6ebca08423 extend copyright 2025-01-01 15:47:22 +01:00
Peter Bieringer
c1be04abd1 fixes suggested by tox 2024-12-31 18:26:43 +01:00
Peter Bieringer
5357e692d9 [auth] htpasswd: module 'bcrypt' is no longer mandatory in case digest method not used in file 2024-12-31 17:09:21 +01:00
Peter Bieringer
2489356dda implement htpasswd file caching 2024-12-31 16:14:38 +01:00
Peter Bieringer
4f2990342d add additional debug line 2024-12-31 07:57:13 +01:00
Peter Bieringer
9af15e6656 fixes triggered by tox 2024-12-30 05:25:10 +01:00
Peter Bieringer
ddd099accd debug log which password hash method was used 2024-12-30 08:17:59 +01:00
Mathieu Dupuy
47bc966a13 fix misspellings 2024-07-24 12:29:13 +02:00
IM
239e17d735 added compatibility with a case-insensitive authentication provider 2024-04-17 18:31:51 +03:00
Peter Bieringer
f0f4213760 fix log message related to bcrypt+autodetect 2024-03-18 06:51:14 +01:00
Peter Bieringer
9a2d42afab align log text 2024-03-16 08:56:04 +01:00
Peter Bieringer
36285143ce fix for incomplete https://github.com/Kozea/Radicale/pull/1425 and test 2024-03-12 07:38:40 +01:00
Peter Bieringer
29a2a80bfd extend htpasswd_encryption options with sha256/512/autodetect 2024-03-12 06:09:02 +01:00
Peter Bieringer
f407915227 next forgotten leftover related to passlib[bcrypt] replacement 2024-03-07 07:28:43 +01:00
Peter Bieringer
1593742ce2 make flake8 happy 2024-03-06 22:46:07 +01:00
Peter Bieringer
438d5f1735 fix for https://github.com/Kozea/Radicale/issues/1350 replacing passlib[bcrypt] with direct call to bcrypt 2024-03-06 22:42:37 +01:00