From 2148f0fad24798b3c16ed81cd0f152542d54bade Mon Sep 17 00:00:00 2001 From: Olivier Navas Date: Sun, 31 Dec 2023 18:52:08 +0100 Subject: [PATCH] =?UTF-8?q?N'inclut=20la=20configuration=20openid=20que=20?= =?UTF-8?q?si=20le=20nom=20du=20provider=20est=20mentionn=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++---- templates/custom_config.php | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e1ef885..0f70877 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ## Services fournis -Installation de roundcube sur un serveur docker_host, en lien avec un keycloak pour l'authentification +Installation de roundcube sur un serveur docker_host, éventuellement en lien avec un keycloak pour l'authentification ## Variables @@ -52,7 +52,7 @@ docker_roundcube_oauth_login_redirect: "true" | docker_roundcube_username_domain | | Suffixe ajouté à l'identifiant pour constituer le login | | docker_roundcube_php_maxpostsize | | Taille maximum d'une requete post en Mo ; doit être supérieur à la taille d'une PJ, notamment si plusieurs PJ : ex 20 M | | docker_roundcube_php_memory_limit | | Taille mémoire max utilisable par php | -| docker_roundcube_oauth_provider_name | | Nom affiché dans pour la sélection du fournisseur d'identité | +| docker_roundcube_oauth_provider_name | | Si précisé, active la configuration Openid. Représente le nom affiché dans pour la sélection du fournisseur d'identité | | docker_roundcube_oauth_client_id | | Identifiant de client openid connect | | docker_roundcube_oauth_client_secret | | Secret du client openid connect | | docker_roundcube_oauth_auth_uri | | Auth URI de la fédération d'identité | @@ -61,5 +61,3 @@ docker_roundcube_oauth_login_redirect: "true" | docker_roundcube_oauth_scope | profile email | OIDC scopes nécessaires pour roundcube | | docker_roundcube_oauth_identity_fields_array | ['email'] | Attributs d'identité utilisés par roundcube pour retrouver le username | | docker_roundcube_oauth_login_redirect | true | Activer la redirection vers le login openid connect ("true" ou "false") | - - diff --git a/templates/custom_config.php b/templates/custom_config.php index da5722a..0c7a56f 100644 --- a/templates/custom_config.php +++ b/templates/custom_config.php @@ -17,7 +17,7 @@ $config['username_domain'] = '{{ docker_roundcube_username_domain }}'; // Any domain in username will be replaced by username_domain. $config['username_domain_forced'] = false; - +{% if docker_roundcube_oauth_provider_name is defined %} // ---------------------------------- // OAuth // ---------------------------------- @@ -60,9 +60,9 @@ $config['oauth_identity_fields'] = {{ docker_roundcube_oauth_identity_fields_arr $config['oauth_login_redirect'] = {{ docker_roundcube_oauth_login_redirect }}; - $config['login_password_maxlen'] = 4096; +{% endif %} // managesieve server port. When empty the port will be determined automatically