Update to 2024-01-08 11:00

This commit is contained in:
Daniel Berteaud
2024-01-08 11:00:40 +01:00
parent 1c9964d5d2
commit 5eec0682a0
6 changed files with 83 additions and 35 deletions

View File

@@ -4,23 +4,14 @@
logLevel = notice
logger = Lemonldap::NG::Common::Logger::Syslog
userLogger = Lemonldap::NG::Common::Logger::Syslog
{% if llng_conf_backend == 'file' %}
{% if llng_sessions_backend == 'file' %}
globalStorage = Apache::Session::File
globalStorageOptions = { \
'Directory' => '/var/lib/lemonldap-ng/sessions/', \
'LockDirectory' => '/var/lib/lemonldap-ng/sessions/lock/', \
'generateModule' => 'Lemonldap::NG::Common::Apache::Session::Generate::SHA256' \
}
{% endif %}
localSessionStorage = Cache::FileCache
localSessionStorageOptions = { \
'namespace' => 'sessions', \
'default_expires_in' => '{{ llng_session_cache }}', \
'directory_umask' => '007', \
'cache_root' => '/var/cache/lemonldap-ng', \
'cache_depth' => 3 \
}
{% if llng_conf_backend == 'mysql' %}
{% elif llng_sessions_backend == 'mysql' %}
{% for type in llng_session_tables.keys() | list %}
{{ type }}Storage = Apache::Session::Browseable::MySQL
{{ type }}StorageOptions = { \
@@ -34,7 +25,26 @@ localSessionStorageOptions = { \
'generateModule' => 'Lemonldap::NG::Common::Apache::Session::Generate::SHA256' \
}
{% endfor %}
{% elif llng_sessions_backend == 'api' %}
globalStorage = Lemonldap::NG::Common::Apache::Session::REST
globalStorageOptions = { \
'baseUrl' => "{{ llng_api_sessions_url }}", \
{% if llng_api_user is defined and llng_api_pass is defined %}
'user' => "{{ llng_api_user }}", \
'password' => "{{ llng_api_pass }}", \
'realm' => "{{ llng_api_realm }}" \
{% endif %}
}
{% endif %}
localSessionStorage = Cache::FileCache
localSessionStorageOptions = { \
'namespace' => 'sessions', \
'default_expires_in' => '{{ llng_session_cache }}', \
'directory_umask' => '007', \
'cache_root' => '/var/cache/lemonldap-ng', \
'cache_depth' => 3 \
}
[configuration]
{% if llng_conf_backend == 'file' %}
@@ -42,10 +52,11 @@ type = File
dirName = /var/lib/lemonldap-ng/conf
{% elif llng_conf_backend == 'api' %}
type = REST
baseUrl = {{ llng_api_uri }}
baseUrl = {{ llng_api_conf_url }}
{% if llng_api_user is defined and llng_api_pass is defined %}
User = {{ llng_api_user }}
Password = {{ llng_api_pass }}
user = {{ llng_api_user }}
password = {{ llng_api_pass }}
realm = {{ llng_api_realm }}
{% endif %}
proxyOptions = { timeout => 5 }
{% elif llng_conf_backend == 'mysql' %}