[PR #57] [MERGED] Allow setting mailbox passwords using other crypt() algorithms, with random salt #266

Closed
opened 2026-02-26 10:30:32 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/opensolutions/ViMbAdmin/pull/57
Author: @andrewd-sterling
Created: 2/5/2014
Status: Merged
Merged: 2/6/2014
Merged by: @barryo

Base: masterHead: local-mods


📝 Commits (1)

  • b63cc73 Add support for modern crypt() algorithms, with random salt.

📊 Changes

2 files changed (+41 additions, -8 deletions)

View changed files

📝 application/configs/application.ini.dist (+12 -8)
📝 application/models/Mailbox.php (+29 -0)

📄 Description

Specify which algorithm to use via the existing defaults.mailbox.password_scheme
The following algorithms are supported:
crypt:md5 (1, dovecot MD5-CRYPT)
crypt:blowfish (2a )
crypt:sha256 (5, dovecot SHA256-CRYPT)
crypt:sha512 (6, dovecot SHA512-CRYPT)

Borrowed some GPL3+ code from RoundCube:
https://github.com/roundcube/roundcubemail/blob/master/plugins/password/drivers/sql.php


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/opensolutions/ViMbAdmin/pull/57 **Author:** [@andrewd-sterling](https://github.com/andrewd-sterling) **Created:** 2/5/2014 **Status:** ✅ Merged **Merged:** 2/6/2014 **Merged by:** [@barryo](https://github.com/barryo) **Base:** `master` ← **Head:** `local-mods` --- ### 📝 Commits (1) - [`b63cc73`](https://github.com/opensolutions/ViMbAdmin/commit/b63cc73de78d5a35a87a05ed7b34dc0c67642e88) Add support for modern crypt() algorithms, with random salt. ### 📊 Changes **2 files changed** (+41 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `application/configs/application.ini.dist` (+12 -8) 📝 `application/models/Mailbox.php` (+29 -0) </details> ### 📄 Description Specify which algorithm to use via the existing defaults.mailbox.password_scheme The following algorithms are supported: crypt:md5 ($1$, dovecot MD5-CRYPT) crypt:blowfish ($2a$ ) crypt:sha256 ($5$, dovecot SHA256-CRYPT) crypt:sha512 ($6$, dovecot SHA512-CRYPT) Borrowed some GPL3+ code from RoundCube: https://github.com/roundcube/roundcubemail/blob/master/plugins/password/drivers/sql.php --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 10:30:32 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#266
No description provided.