Commits

Zhang Huangbin committed fc8b0fd

Fixed: Not enable OpenLDAP TLS/SSL support on OpenBSD by default.

Comments (0)

Files changed (2)

iRedMail/ChangeLog

       allowedsenders, rejectedsenders, allowedrecipients, rejectedrecipients
     * Now supports OpenBSD built-in LDAP daemon: ldapd(8).
     * Fixed:
+        - Not enable OpenLDAP TLS/SSL support on OpenBSD by default.
         - Cannot handle alias domain in Postfix per-user bcc.
           Thanks Ward De Backer <wdb _at_ stabe.be> for the report.
 

iRedMail/functions/openldap.sh

         cat >> ${OPENLDAP_SYSCONFIG_CONF} <<EOF
 OPTS="-f ${OPENLDAP_SLAPD_CONF} -h 'ldaps:// ldap:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock'"
 EOF
+    elif [ X"${DISTRO}" == X'OPENBSD' ]; then
+        # Enable TLS/SSL support
+        cat >> ${RC_CONF_LOCAL} <<EOF
+slapd_flags='-u _openldap -h ldap:///\ ldaps:///'
+EOF
     fi
 
     ###################