Commits

Zhang Huangbin committed 9e9afc0

OpenLDAP parameter modulepath/moduleload are required on FreeBSD.

Comments (0)

Files changed (1)

iRedMail/functions/openldap.sh

     perl -pi -e 's#PH_OPENLDAP_ARGS_FILE#$ENV{OPENLDAP_ARGS_FILE}#g' ${OPENLDAP_SLAPD_CONF}
 
     perl -pi -e 's#PH_OPENLDAP_MODULE_PATH#$ENV{OPENLDAP_MODULE_PATH}#g' ${OPENLDAP_SLAPD_CONF}
-    if [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
+    if [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' -o X"${DISTRO}" == X'FREEBSD' ]; then
         perl -pi -e 's/^#(modulepath.*)/${1}/g' ${OPENLDAP_SLAPD_CONF}
         perl -pi -e 's/^#(moduleload.*)/${1}/g' ${OPENLDAP_SLAPD_CONF}
     fi