Commits

Zhang Huangbin  committed 04678f9

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

  • Participants
  • Parent commits 6d3f06d

Comments (0)

Files changed (3)

File 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.

File 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

File 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