add cache_logins* options
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user