Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If using dovecot as password generator ViMbAdmin changes the hash which makes change of hash later impossible #256

Closed
mfechner opened this issue Dec 5, 2018 · 2 comments

Comments

@mfechner
Copy link
Contributor

mfechner commented Dec 5, 2018

Dear all,

regarding this line:

return trim( substr( $a, strlen( $scheme ) + 2 ) );

if dovecot is used to generate the hash, the hash normally looks like:

doveadm -o stats_writer_socket_path= pw -p test -s BLF-CRYPT
{BLF-CRYPT}$2y$05$MScpeuQcoTM0evggtJ9ZX.tzwbD4GXsrepigXHYhfaI4mx0EqWcLy

ViMbAdmin does now remove the part {BLF-CRYPT}.
If you now try to migrate from BLF-CRYPT to ARGON2ID and you change the standard password scheme authentication will not work anymore.
Is there a special reason why {BLF-CRYPT} is removed.

If that removal would not happen, you can mix password scheme and you can use a post-login script from dovecot to migrate to a new hash scheme without interrupting your email service.

If you agree, I would create a merge request that does not remove the {BLF-CRYPT} from the hash anymore.

@barryo
Copy link
Member

barryo commented May 16, 2020

You are right that we probably shouldn't have stripped it but unfortunately this change would create widespread breakage of existing systems.

This could be solved with a MySQL VIEW table.

@barryo barryo closed this as completed May 16, 2020
@barryo
Copy link
Member

barryo commented May 16, 2020

Actually also discussed in the still open #178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants