Zhang Huangbin avatar Zhang Huangbin committed 04678f9

Fixed: User authentication in Roundcube is case sensitive (login_lc).

Comments (0)

Files changed (3)

iRedMail/ChangeLog

 iRedMail-0.8.0-beta2:
     * Fixed:
         + Dovecot cannot store realtime quota usage in PostgreSQL.
+        + User authentication in Roundcube is case sensitive (login_lc).
 
 iRedMail-0.8.0-beta1:
     * It now supports PostgreSQL as backend.

iRedMail/functions/openldap.sh

     if [ X"${DISTRO}" == X"FREEBSD" ]; then
         echo -e '!slapd' >> ${SYSLOG_CONF}
         echo -e '*.*\t\t\t\t\t\t/var/log/openldap.log' >> ${SYSLOG_CONF}
+    elif [ X"${DISTRO}" == X'GENTOO' ]; then
+        cat >> ${SYSLOG_CONF} <<EOF
+# OpenLDAP
+filter f_local4         {facility(local4); };
+destination slapd {file("/var/log/openldap.log"); };
+log {source(src); filter(f_local4); destination(slapd); };
+EOF
     else
         echo -e "local4.*\t\t\t\t\t\t-${OPENLDAP_LOGFILE}" >> ${SYSLOG_CONF}
     fi

iRedMail/functions/roundcubemail.sh

     # 0 - disabled, 1 - username and host only, 2 - username, host, password
     perl -pi -e 's#(.*login_autocomplete.*=)(.*)#${1} 2;#' main.inc.php
 
+    # If users authentication is not case sensitive this must be enabled
+    perl -pi -e 's#(.*login_lc.*=)(.*)#${1} true;#' main.inc.php
+
     # Automatically create a new ROUNDCUBE USER when log-in the first time.
     perl -pi -e 's#(.*auto_create_user.*=)(.*)#${1} true;#' main.inc.php
 
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.