Peter Bieringer
046d39b1bd
pam: add support
2025-02-22 17:49:36 +01:00
Peter Bieringer
9791a4db0f
pam: doc
2025-02-22 17:48:31 +01:00
Peter Bieringer
53251231d4
change mtime test file location to collection-root
2025-02-21 07:41:01 +01:00
Peter Bieringer
18338b3c6e
flake8 fix
2025-02-20 21:17:34 +01:00
Peter Bieringer
d5cb05f817
extend copyright
2025-02-20 21:17:24 +01:00
Peter Bieringer
13a78d7365
relax mtime check
2025-02-20 21:12:58 +01:00
Peter Bieringer
f6b5cb8a1e
make flake8 happy
2025-02-18 06:14:59 +01:00
Peter Bieringer
3914735ec0
skip bcrypt related tests if module is missing
2025-02-18 06:13:39 +01:00
Peter Bieringer
48a634af9f
check whether bcrypt module is available
2025-02-18 06:13:19 +01:00
Peter Bieringer
a62da71aa2
fix loglevel
2025-02-11 16:44:30 +01:00
Peter Bieringer
67bbc9a31b
catch os error
2025-02-11 16:42:45 +01:00
Peter Bieringer
dc83c6d7d0
extend copyright
2025-02-11 16:42:45 +01:00
Peter Bieringer
484616f363
catch os error
2025-02-11 16:42:45 +01:00
Peter Bieringer
718089e3bf
extend copyright
2025-02-11 16:42:45 +01:00
Peter Bieringer
b078a8f002
catch os errors
2025-02-11 16:42:45 +01:00
Peter Bieringer
fde0ecb9b2
change loglevel
2025-02-11 16:42:45 +01:00
Peter Bieringer
803763729a
extend copyright
2025-02-11 16:42:45 +01:00
Peter Bieringer
37b18cf5a2
catch error during create_collection
2025-02-11 16:42:45 +01:00
Peter Bieringer
cd51581f38
extend copyright
2025-02-11 16:42:45 +01:00
Peter Bieringer
88accdb672
catch server errors and return proper message
2025-02-11 16:42:45 +01:00
Peter Bieringer
c157dd7d19
extend copyright
2025-02-11 16:42:45 +01:00
Peter Bieringer
605fc65584
improve coding
2025-02-11 16:42:45 +01:00
Peter Bieringer
f0d06cbc7d
catch server errors on put
2025-02-11 16:42:45 +01:00
Peter Bieringer
77f69f2b1e
add new error code
2025-02-11 16:42:45 +01:00
Peter Bieringer
b011fa4e61
extend copyright year
2025-02-11 16:42:45 +01:00
Peter Bieringer
dcaec20681
extend copyright year
2025-02-11 16:42:45 +01:00
Peter Bieringer
e0d20edbcd
oauth2 do not throw exception in case server is not reachable
2025-02-02 09:04:42 +01:00
Peter Bieringer
d2be086cd1
oauth2 adjustments to radicale changes in the past
2025-02-02 09:04:20 +01:00
Peter Bieringer
7b6146405f
make tox happy
2025-02-02 09:04:06 +01:00
Peter Bieringer
04523e5087
oauth2 config option
2025-02-02 09:03:42 +01:00
Peter Bieringer
87dc5538d2
oauth2 module enabling
2025-02-02 09:01:58 +01:00
Peter Bieringer
937acf38f7
oauth2 config check improvement
2025-02-02 08:33:49 +01:00
Peter Bieringer
063883797c
add copyright
2025-02-02 08:32:42 +01:00
Peter Bieringer
30389f4525
initial from https://gitlab.mim-libre.fr/alphabet/radicale_oauth/-/blob/dev/oauth2/radicale_auth_oauth2/__init__.py
2025-02-02 08:29:02 +01:00
Peter Bieringer
26637a1240
add logging entries for dovecot, adjust for imap
2025-01-20 06:31:56 +01:00
Peter Bieringer
3df5d28432
imap: mypy fix
2025-01-16 06:11:57 +01:00
Peter Bieringer
e80bf58901
imap: flake8 fixes
2025-01-16 06:05:14 +01:00
Peter Bieringer
bc939522dc
imap: migrate from https://github.com/Unrud/RadicaleIMAP/
2025-01-16 06:02:22 +01:00
Peter Bieringer
50b76f7114
imap: config parse
2025-01-16 06:02:06 +01:00
Peter Bieringer
ed6a5a834e
add proper default for dovecot_host
2025-01-14 08:57:15 +01:00
HmBMvXXiSivMcLGFWoqc
3f04914de4
Add support for Dovecot auth over network
2025-01-13 23:31:13 -08:00
Peter Marschall
d6c4e6487a
LDAP auth: flexibilize parsing of 'ldap_groups_attribute'
...
Use helper methods from the LDAP modules to get individual elements
(like in our case the RDN value) out of attributes with DN syntax
in a standard compliant way instead fiddling around ourselves.
If these methods fail, fall back to using the whole attribute value,
which allows us to also use attributes with non-DN syntax for groups
and permissions.
2025-01-03 20:47:36 +01:00
Peter Marschall
f9dd3efc3a
LDAP auth: remove config option 'ldap_load_groups'
...
The same effect can be achieved using the option 'ldap_groups_attribute' alone,
if it's default becomes unset instead of 'memberOf'
Benefit: one config option less to deal with.
While at it, also fix header level for 'ldap_user_attribute' in documentation.
2025-01-03 20:47:31 +01:00
Peter Marschall
6c1445d8db
LDAP auth: introduce config option 'ldap_groups_attribute'
...
This attribute is supposed to hold the group membership information
if the config option 'ldap_load_groups' is True.
If not given, it defaults to 'memberOf' for Active Directory.
Introducing this options allows one to use radicale's LDAP auth with groups
even on LDAP servers that keep their group memberships in a different attribute
than 'memberOf', e.g. Novell eDirectory which uses 'groupMembership'.
2025-01-03 20:27:21 +01:00
Peter Marschall
1ca41e2128
LDAP auth: only ask for memberOf if ldap_load_groups = True
...
Ask for the 'memberOf' attribute to be returned in the user query only
if 'ldap_load_groups' is set to True.
This fixes the issue that currently LDAP authentication can only be used on
LDAP servers that know this non-standard (it's an Active Directory extension)
attribute.
Other LDAP servers either do not necessarily have the group memberships
stored in the user object (e.g. OpenLDAP), or use different attributes for
this purpose (e.g. Novell eDirectory uses 'groupMembership')
2025-01-03 14:34:51 +01:00
Peter Marschall
607b3af67b
LDAP auth: calculate attributes to query in __init__()
...
Remove code duplication by factoring out the calculation of the
LDAP query attributes out of _login2() resp. _login3() into __init__().
2025-01-03 13:09:59 +01:00
Peter Bieringer
b0d56f898b
Merge pull request #1668 from pbiering/login-cache
...
add optional cache for login result and htpasswd + fixes
final version will be updated to 3.4.0 next
2025-01-03 07:51:06 +00:00
Peter Bieringer
2442a794ae
tox fixes
2025-01-02 23:17:34 +01:00
Peter Bieringer
a9f2e6fe7b
improve code/adjustments
2025-01-03 07:14:32 +01:00
Peter Bieringer
5a00baab3f
cosmetics
2025-01-03 07:11:51 +01:00