mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-04 15:54:48 +01:00
Test upgrade to LDAP from upstream Mail-in-a-Box/sqlite
This commit is contained in:
@@ -857,7 +857,13 @@ cat > /etc/logrotate.d/slapd <<EOF;
|
||||
EOF
|
||||
|
||||
# Modify olc server config like TLS
|
||||
modify_global_config
|
||||
# Skip this step if no ca_certificate.pem exists - this indicates
|
||||
# that the system hasn't yet been migrated from sqlite
|
||||
if [ -e "$STORAGE_ROOT/ssl/ca_certificate.pem" ]; then
|
||||
modify_global_config
|
||||
else
|
||||
say_debug "Not enabling TLS at this time - ca_certificate hasn't been generated yet"
|
||||
fi
|
||||
|
||||
# Add overlays and ensure mail-related attributes are indexed
|
||||
add_overlays
|
||||
|
||||
@@ -6,8 +6,9 @@
|
||||
#
|
||||
# The script will:
|
||||
# 1. enable the "LDAP user and group backend" in Nextcloud
|
||||
# 2. configure Nextcloud to access MiaB-LDAP for users and groups
|
||||
# 3. optionally install and configure ssmtp so system mail is
|
||||
# 2. install calendar and contacts
|
||||
# 3. configure Nextcloud to access MiaB-LDAP for users and groups
|
||||
# 4. optionally install and configure ssmtp so system mail is
|
||||
# sent to MiaB-LDAP
|
||||
#
|
||||
VERBOSE=0
|
||||
|
||||
10
setup/ssl.sh
10
setup/ssl.sh
@@ -96,11 +96,6 @@ if [ ! -s $STORAGE_ROOT/ssl/ssl_private_key.pem ]; then
|
||||
# Set the umask so the key file is never world-readable.
|
||||
(umask 037; hide_output \
|
||||
openssl genrsa -out $STORAGE_ROOT/ssl/ssl_private_key.pem 2048)
|
||||
|
||||
# Give the group 'ssl-cert' read access so slapd can read it
|
||||
groupadd -fr ssl-cert
|
||||
chgrp ssl-cert $STORAGE_ROOT/ssl/ssl_private_key.pem
|
||||
chmod g+r $STORAGE_ROOT/ssl/ssl_private_key.pem
|
||||
|
||||
# Remove the ssl_certificate.pem symbolic link to force a
|
||||
# regeneration of the server certificate. It needs to be
|
||||
@@ -110,6 +105,11 @@ if [ ! -s $STORAGE_ROOT/ssl/ssl_private_key.pem ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Give the group 'ssl-cert' read access so slapd can read it
|
||||
groupadd -fr ssl-cert
|
||||
chgrp ssl-cert $STORAGE_ROOT/ssl/ssl_private_key.pem
|
||||
chmod g+r $STORAGE_ROOT/ssl/ssl_private_key.pem
|
||||
|
||||
#
|
||||
# Generate a root CA certificate
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user