mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #755 from yalh76/openldap-tls
[enh] Add OpenLDAP TLS support
This commit is contained in:
commit
5409351096
2 changed files with 7 additions and 0 deletions
|
@ -76,6 +76,9 @@ do_post_regen() {
|
||||||
sudo chown -R openldap:openldap /etc/ldap/schema/
|
sudo chown -R openldap:openldap /etc/ldap/schema/
|
||||||
sudo chown -R openldap:openldap /etc/ldap/slapd.d/
|
sudo chown -R openldap:openldap /etc/ldap/slapd.d/
|
||||||
|
|
||||||
|
# Add openldap user in the ssl-cert group to let it access the certificate for TLS
|
||||||
|
sudo usermod -aG ssl-cert openldap
|
||||||
|
|
||||||
[ -z "$regen_conf_files" ] && exit 0
|
[ -z "$regen_conf_files" ] && exit 0
|
||||||
|
|
||||||
# check the slapd config file at first
|
# check the slapd config file at first
|
||||||
|
|
|
@ -41,6 +41,10 @@ sizelimit 500
|
||||||
# for indexing.
|
# for indexing.
|
||||||
tool-threads 1
|
tool-threads 1
|
||||||
|
|
||||||
|
# TLS Support
|
||||||
|
TLSCertificateFile /etc/ssl/private/yunohost_crt.pem
|
||||||
|
TLSCertificateKeyFile /etc/ssl/private/yunohost_key.pem
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# Specific Backend Directives for mdb:
|
# Specific Backend Directives for mdb:
|
||||||
# Backend specific directives apply to this backend until another
|
# Backend specific directives apply to this backend until another
|
||||||
|
|
Loading…
Add table
Reference in a new issue