1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00
Commit graph

2134 commits

Author SHA1 Message Date
Johannes Berg
256ca59aaf auth: clean up remote IP parameter/documentation
Make the remote IP parameter more generic and make it an enum
determining the source instead of a boolean. Also fix the
changelog entry.

Both as requested, I managed to miss those comments previously.
2025-09-09 20:25:49 +02:00
Johannes Berg
b5a1ea911d auth: dovecot: pass remote IP (rip=) to auth server
If known, let the auth server know where the client came
from, using REMOTE_ADDR or, optionally/configurably, the
X-Remote-Addr header value (which is needed when running
behind a trusted proxy.)

Addresses #1859.
2025-09-09 12:10:00 +02:00
Peter Marschall
57a4d8d47d LDAP auth: update, consolidate & extend documentation 2025-09-08 22:01:13 +02:00
Peter Marschall
9eb9556536 LDAP auth: decode UTF-8 byte sequences to strings only if necessary 2025-09-07 15:05:47 +02:00
Peter Marschall
cde4c5f2e8 LDAP auth: stop giving type hints for local list variables 2025-09-07 14:44:03 +02:00
Peter Marschall
9b216a9f24 LDAP auth: define fallback value for _use_encryption 2025-09-07 11:38:08 +02:00
Peter Marschall
5c4a0578b0 LDAP auth: fix _login2() by importing ldap.filter 2025-09-07 11:38:08 +02:00
Peter Marschall
5a183e3c2b LDAP auth: make flake8 happy
"fix" small lint to keep flake8 happy.
2025-09-07 11:38:08 +02:00
Peter Marschall
5f677fc77e LDAP auth: document all paramters at the top of the file 2025-09-07 11:38:08 +02:00
Peter Marschall
8821612fa8 LDAP auth: allow finding groups based on separate search
Instead of searching for the membership attribute on the user side
(usually AD: memberOf, Novell eDirectory: groupMembership) to determine
the groups the user loging on is a member of, allow performing a separate
search for the groups having the user as member and use the found groups' DNs.

The group search is performed in the context of 'ldap_reader_dn', after
the user DN has been found in the directory, but before the authentication
has been performed by doing an LDAP bind in the user's context.

Although this may - in the case of unsuccessful login attempts -
double the number of queries to the LDAP server, it has been done
this way to keep the number of LDAP contexts minimal.

Doing the group search in the context of the user logging on is no viable
option, because there are known implementations where regular users do not
have the necessary permissions to query the groups they are a member in.
2025-09-07 11:38:08 +02:00
Peter Bieringer
ca3fd9a3ff Improve: user/group retrievement for running service and directories 2025-09-01 20:31:23 +02:00
David Fernandez Alcoba
550f522e9d Fix broken start when UID does not exist 2025-08-29 13:00:23 +02:00
Peter Bieringer
6d3cd8146f fix lint issue related to 9d5772901d 2025-08-24 10:14:28 +02:00
Jochen Sprickerhof
5f7f410310
Fix acquire_lock interface signature
See multifilesystem/lock.py and different calls.
2025-08-23 20:59:37 +02:00
Peter Bieringer
9d5772901d run rabbitmq tests only if module pika is available 2025-08-23 07:29:45 +02:00
Peter Bieringer
8e4447e95b conditional log level for base_prefix strip action 2025-08-22 08:49:24 +02:00
Peter Bieringer
7f28f69452 extend test for items having tzinfo only on dtstart or dtend set for whatever reason, overtake tzinfo from the other one 2025-08-22 07:51:15 +02:00
Peter Bieringer
2a808fd373 test items having tzinfo only on dtstart or dtend set for whatever reason 2025-08-22 07:50:47 +02:00
Peter Bieringer
e1b19f1a22 catch items having tzinfo only on dtstart or dtend set for whatever reason, overtake tzinfo from the other one 2025-08-22 07:49:54 +02:00
Peter Bieringer
74d21f011c enrich for optional tzinfo 2025-08-22 07:49:09 +02:00
Peter Bieringer
c74ac9c225
Merge pull request #1829 from nwithan8/email
Improve email notification hook by determining event update type
2025-08-22 06:15:55 +02:00
Nate Harris
998b2e2121 - Fix unit tests for hook email trigger conditional based on end date 2025-08-21 00:21:11 -06:00
Georgiy
7ce41aee37 (#1845) Fix expanded item copying 2025-08-17 20:06:37 +03:00
Nate Harris
9b6ba72fa0 - Fix dryrun property 2025-08-14 00:10:16 -06:00
Nate Harris
f32e50bc9d - Add unit tests to confirm emails not triggered when adding/deleting event with past end date 2025-08-14 00:06:55 -06:00
Nate Harris
208dd22a42 - Do not send notifications if end time is more than 1 minute in the past (buffer) 2025-08-13 23:46:26 -06:00
Nate Harris
74bc78aac4 - Linting 2025-08-13 23:46:26 -06:00
Nate Harris
5c9c5b1572 - Linting 2025-08-13 23:46:26 -06:00
Nate Harris
16b7311229 - Include legacy "content" parameter in HookNotificationItem usage 2025-08-13 23:46:26 -06:00
Nate Harris
e391c3aa92 - Compare previous-current events to determine if non-invitee changes were made (notify non-added/removed attendees of event update) 2025-08-13 23:46:26 -06:00
Nate Harris
80dc4995cf - Capture previous version of event pre-overwrite for use in notification hooks
- Use previous version of event in email hooks to determine added/deleted/updated email type
2025-08-13 23:46:24 -06:00
Peter Bieringer
7bedca72e2 catch OS without flock 2025-08-12 16:48:04 +02:00
Peter Bieringer
91d4dc3ef1 make mypy happy 2025-08-12 16:42:06 +02:00
Peter Bieringer
97d30478c7 add tests for storage hook placeholders 2025-08-12 16:12:38 +02:00
Peter Bieringer
6a8f5f4a5b extend/adjust copyright 2025-08-12 16:12:15 +02:00
Peter Bieringer
19def4d561 add for write requests "path" where missing and "request" 2025-08-12 16:11:24 +02:00
Peter Bieringer
eec7d5bbbf add support for placeholders 'request' and 'to_path' 2025-08-12 16:09:11 +02:00
Peter Bieringer
80bd41c97e fix-1812-etag 2025-07-31 18:54:28 +02:00
Peter Bieringer
127c0b9b11 add tests for hook/email 2025-07-22 21:00:12 +02:00
Peter Bieringer
4e9f3a467c add test for hook/rabbitmq 2025-07-22 20:59:59 +02:00
Peter Bieringer
e0946a83b5 add support for hook option "dryrun" 2025-07-22 20:59:16 +02:00
Peter Bieringer
0e44b48327 add missing copyright header 2025-07-22 20:58:59 +02:00
Peter Bieringer
6de7b3b8c9 add support for hook option "dryrun" 2025-07-22 20:58:40 +02:00
Peter Bieringer
fe175df9a2 add missing copyright header 2025-07-22 20:58:10 +02:00
Peter Bieringer
de384d5f4a add hook option "dryrun" 2025-07-22 20:56:43 +02:00
Peter Bieringer
a824ae6c14
Merge pull request #1834 from metallerok/1812_test_specific_event
Fixed an issue where non-recurring events were not included in  the response when requesting an expand report
2025-07-22 18:59:06 +02:00
Georgiy
7cd918d036 (#1812) Fixed an issue where non-recurring events were not included in
the response when requesting an expand report
2025-07-21 20:58:58 +03:00
Peter Bieringer
407d33b623 replace 2x with DT_FORMAT_TIMESTAMP 2025-07-21 19:43:38 +02:00
Peter Bieringer
009d8e4e17 fix for Expanded event with dates are missing VALUE=DATE 2025-07-21 19:41:18 +02:00
Peter Bieringer
878c9ea193 extend log message found via https://github.com/Kozea/Radicale/issues/1823 2025-07-21 19:38:15 +02:00