From a1f376033e4f77d7ef109038a562d809b436ffd7 Mon Sep 17 00:00:00 2001 From: Katzman Date: Thu, 5 Jan 2023 15:07:08 +0100 Subject: [PATCH] radicale missing library and updated config.tpl --- modoboa_installer/scripts/files/radicale/config.tpl | 6 ++++-- modoboa_installer/scripts/radicale.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modoboa_installer/scripts/files/radicale/config.tpl b/modoboa_installer/scripts/files/radicale/config.tpl index f3c8a853..8071980d 100644 --- a/modoboa_installer/scripts/files/radicale/config.tpl +++ b/modoboa_installer/scripts/files/radicale/config.tpl @@ -70,8 +70,10 @@ [auth] # Authentication method -# Value: none | htpasswd | remote_user | http_x_remote_user -type = radicale_dovecot_auth +# Value: none | htpasswd | remote_user | http_x_remote_user | radicale_dovecot_auth | radicale_modoboa_token_auth +type = radicale_modoboa_token_auth +radicale_modoboa_token_auth_check_url = https://%{hostname}/api/v1/user-calendars/check_token/ +radicale_modoboa_token_auth_token = # Htpasswd filename # htpasswd_filename = users diff --git a/modoboa_installer/scripts/radicale.py b/modoboa_installer/scripts/radicale.py index a0ca3090..c2c7af87 100644 --- a/modoboa_installer/scripts/radicale.py +++ b/modoboa_installer/scripts/radicale.py @@ -34,7 +34,7 @@ def _setup_venv(self): python.setup_virtualenv( self.venv_path, sudo_user=self.user, python_version=3) packages = [ - "Radicale", "radicale-dovecot-auth", "pytz" + "Radicale", "radicale-dovecot-auth", "radicale-modoboa-token-auth", "pytz" ] python.install_packages(packages, self.venv_path, sudo_user=self.user) python.install_package_from_repository(