iredmail / iRedMail / conf / openldap

Diff from to

iRedMail/conf/openldap

 
 # Variables for OpenLDAP and related. Refer to 'dialog/ldap_config.sh'.
 
+# OpenLDAP version number.
+export OPENLDAP_VERSION='2.4'
+
 # LDAP service info.
 # LDAP_SERVER_HOST is configured in conf/global
 export LDAP_SERVER_PORT='389'
 
 # Configure.
 if [ X"${DISTRO}" == X"RHEL" ]; then
-    # OpenLDAP version.
-    if [ X"${DISTRO_VERSION}" == X"5" ]; then
-        export OPENLDAP_VERSION='2.3'
-        export OPENLDAP_RC_SCRIPT_NAME='ldap'
-    else
-        export OPENLDAP_VERSION='2.4'
-    fi
 
     export OPENLDAP_DB_CONFIG_SAMPLE="${OPENLDAP_CONF_ROOT}/DB_CONFIG.example"
     export OPENLDAP_SYSCONFIG_CONF="${ETC_SYSCONFIG_DIR}/ldap"
     fi
 
 elif [ X"${DISTRO}" == X"SUSE" ]; then
-    # OpenLDAP version.
-    export OPENLDAP_VERSION='2.4'
-
     export OPENLDAP_DB_CONFIG_SAMPLE='/var/lib/ldap/DB_CONFIG.example'
 
     export OPENLDAP_PID_FILE='/var/run/slapd/slapd.pid'
     export OPENLDAP_RC_SCRIPT_NAME='ldap'
 
 elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
-    # OpenLDAP version.
-    export OPENLDAP_VERSION='2.4'
-
     # LDAP daemon user & group.
     export OPENLDAP_DAEMON_USER='openldap'
     export OPENLDAP_DAEMON_GROUP='openldap'
     export OPENLDAP_MODULE_PATH='/usr/lib/ldap'
 
 elif [ X"${DISTRO}" == X"GENTOO" ]; then
-    # OpenLDAP version.
-    export OPENLDAP_VERSION='2.4'
-
     export OPENLDAP_DB_CONFIG_SAMPLE="${OPENLDAP_CONF_ROOT}/DB_CONFIG.example"
     export OPENLDAP_SYSCONFIG_CONF="${ETC_SYSCONFIG_DIR}/slapd"
 
     export OPENLDAP_DATA_DIR='/var/lib/openldap-data'
 
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then
-    # OpenLDAP version.
-    export OPENLDAP_VERSION='2.4'
-
     # Configuration files.
     export OPENLDAP_CONF_ROOT='/usr/local/etc/openldap'
     export OPENLDAP_DB_CONFIG_SAMPLE="${OPENLDAP_CONF_ROOT}/DB_CONFIG.example"
     export OPENLDAP_DATA_DIR='/var/db/openldap-data'    # Do *NOT* end with '/'.
 
 elif [ X"${DISTRO}" == X'OPENBSD' ]; then
-    # OpenLDAP version.
-    export OPENLDAP_VERSION='2.4'
-
     # LDAP daemon user & group.
     export OPENLDAP_DAEMON_USER='_openldap'
     export OPENLDAP_DAEMON_GROUP='_openldap'
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.