update password_query for new vmail db structure

This commit is contained in:
Matthew Saunders Brown 2023-08-23 13:40:23 -07:00
parent ccff56c58f
commit 526b308474

View File

@ -51,7 +51,7 @@ $config['password_algorithm'] = 'sha512-crypt';
// Password prefix (e.g. {CRYPT}, {SHA}) for passwords generated
// using password_algorithm above. Default: empty.
$config['password_algorithm_prefix'] = '';
$config['password_algorithm_prefix'] = '{SHA512-CRYPT}';
// Path for dovecotpw/doveadm-pw (if not in the $PATH).
// Used for password_algorithm = 'dovecot'.
@ -129,7 +129,7 @@ $config['password_username_format'] = '%u';
// %q is replaced with the hashed password before the change
// Escaping of macros is handled by this module.
// Default: "SELECT update_passwd(%c, %u)"
$config['password_query'] = 'UPDATE vm_mboxes, vm_domains SET vm_mboxes.passwd=%P WHERE vm_mboxes.mbox = %l AND vm_mboxes.domain_id = vm_domains.id AND vm_domains.domain = %d';
$config['password_query'] = 'UPDATE vm_mboxes SET passwd=%P WHERE mbox = %l AND domain = %d';
// By default the crypt() function which is used to create the %c
// parameter uses the md5 algorithm (deprecated, use %P).