Commit 5228c377 authored by ale's avatar ale

Add SSO configuration

parent e4c0fa11
Pipeline #846 passed with stages
in 3 minutes and 48 seconds
...@@ -41,6 +41,7 @@ APACHE_MODULES_ENABLE=" ...@@ -41,6 +41,7 @@ APACHE_MODULES_ENABLE="
rewrite rewrite
setenvif setenvif
sso sso
unique_id
" "
# Apache modules that are enabled by default by the Debian package, # Apache modules that are enabled by default by the Debian package,
...@@ -105,6 +106,9 @@ for d in temp logs ; do ...@@ -105,6 +106,9 @@ for d in temp logs ; do
chmod 700 /var/www/webmail/$d chmod 700 /var/www/webmail/$d
done done
# Create config mountpoint
mkdir -p /etc/roundcube
# Install Chaperone (minimalistic init service). # Install Chaperone (minimalistic init service).
pip3 install chaperone pip3 install chaperone
rm -fr /root/.cache/pip rm -fr /root/.cache/pip
......
SSOPublicKeyFile /etc/sso/public.key
SSOLoginServer login.${DOMAIN}
SSODomain ${DOMAIN}
...@@ -17,5 +17,11 @@ ...@@ -17,5 +17,11 @@
Require all granted Require all granted
</Directory> </Directory>
<Location />
AuthType SSO
SSOService ${SHARD_ID}.webmail.${DOMAIN}/
require group users
</Location>
</VirtualHost> </VirtualHost>
...@@ -10,16 +10,11 @@ ...@@ -10,16 +10,11 @@
CONFIG_DIR=/etc/roundcube CONFIG_DIR=/etc/roundcube
TARGET_DIR=/var/www/webmail TARGET_DIR=/var/www/webmail
# Main configuration files.
MAIN_CONFIG_FILES="config.inc.php db.inc.php"
# Name of the MySQL database to use. # Name of the MySQL database to use.
MYSQL_DB="ai_roundcube" MYSQL_DB="ai_roundcube"
install_config() { install_config() {
for f in ${MAIN_CONFIG_FILES} ; do install -o root -g root -m 644 ${CONFIG_DIR}/config.inc.php ${TARGET_DIR}/config/config.inc.php
install -o root -g root -m 644 ${CONFIG_DIR}/${f} ${TARGET_DIR}/config/$f
done
# For each known plugin, look for a NAME.config.inc.php file in # For each known plugin, look for a NAME.config.inc.php file in
# the config directory: if found, copy it to the plugin directory # the config directory: if found, copy it to the plugin directory
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment