mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
add cache_logins* options
This commit is contained in:
parent
ac8abbd12c
commit
74311560c9
3 changed files with 26 additions and 0 deletions
|
@ -812,6 +812,18 @@ Available backends:
|
||||||
|
|
||||||
Default: `none`
|
Default: `none`
|
||||||
|
|
||||||
|
##### cache_logins
|
||||||
|
|
||||||
|
Cache successful logins until expiration time
|
||||||
|
|
||||||
|
Default: `false`
|
||||||
|
|
||||||
|
##### cache_logins_expiry
|
||||||
|
|
||||||
|
Expiration time of caching successful logins in seconds
|
||||||
|
|
||||||
|
Default: `5`
|
||||||
|
|
||||||
##### htpasswd_filename
|
##### htpasswd_filename
|
||||||
|
|
||||||
Path to the htpasswd file.
|
Path to the htpasswd file.
|
||||||
|
|
6
config
6
config
|
@ -62,6 +62,12 @@
|
||||||
# Value: none | htpasswd | remote_user | http_x_remote_user | ldap | denyall
|
# Value: none | htpasswd | remote_user | http_x_remote_user | ldap | denyall
|
||||||
#type = none
|
#type = none
|
||||||
|
|
||||||
|
# Cache successful logins for until expiration time
|
||||||
|
#cache_logins = false
|
||||||
|
|
||||||
|
# Expiration time for caching successful logins in seconds
|
||||||
|
#cache_logins_expiry = 5
|
||||||
|
|
||||||
# URI to the LDAP server
|
# URI to the LDAP server
|
||||||
#ldap_uri = ldap://localhost
|
#ldap_uri = ldap://localhost
|
||||||
|
|
||||||
|
|
|
@ -183,6 +183,14 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([
|
||||||
"help": "authentication method",
|
"help": "authentication method",
|
||||||
"type": str_or_callable,
|
"type": str_or_callable,
|
||||||
"internal": auth.INTERNAL_TYPES}),
|
"internal": auth.INTERNAL_TYPES}),
|
||||||
|
("cache_logins", {
|
||||||
|
"value": "false",
|
||||||
|
"help": "cache successful logins for until expiration time",
|
||||||
|
"type": bool}),
|
||||||
|
("cache_logins_expiry", {
|
||||||
|
"value": "5",
|
||||||
|
"help": "expiration time for caching successful logins in seconds",
|
||||||
|
"type": int}),
|
||||||
("htpasswd_filename", {
|
("htpasswd_filename", {
|
||||||
"value": "/etc/radicale/users",
|
"value": "/etc/radicale/users",
|
||||||
"help": "htpasswd filename",
|
"help": "htpasswd filename",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue