Zhang Huangbin avatar 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
 
     ###################
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.