Commits

Zhang Huangbin committed 2880e11

Use 'md5crypt' instead of 'ssha' while updating password within Roundcube.

  • Participants
  • Parent commits d6d6d09

Comments (0)

Files changed (1)

iRedMail/functions/roundcubemail.sh

         perl -pi -e 's#(.*password_ldap_adminDN.*=).*#${1} "null";#' config.inc.php
         perl -pi -e 's#(.*password_ldap_adminPW.*=).*#${1} "null";#' config.inc.php
         perl -pi -e 's#(.*password_ldap_userDN_mask...=).*#${1} "$ENV{LDAP_ATTR_USER_RDN}=%login,$ENV{LDAP_ATTR_GROUP_RDN}=$ENV{LDAP_ATTR_GROUP_USERS},$ENV{LDAP_ATTR_DOMAIN_RDN}=%domain,$ENV{LDAP_BASEDN}";#' config.inc.php
-        perl -pi -e 's#(.*password_ldap_encodage.*=).*#${1} "ssha";#' config.inc.php
+
+        # Use 'md5crypt' instead of 'ssha', because SSHA requires PHP module
+        # 'mhash' which may be unavailable on all supported distros.
+        perl -pi -e 's#(.*password_ldap_encodage.*=).*#${1} "md5crypt";#' config.inc.php
+
         perl -pi -e 's#(.*password_ldap_pwattr.*=).*#${1} "userPassword";#' config.inc.php
         perl -pi -e 's#(.*password_ldap_force_replace.*=).*#${1} false;#' config.inc.php
         perl -pi -e 's#(.*password_ldap_lchattr.*=).*#${1} "shadowLastChange";#' config.inc.php