Skip to content

Commit 3190f12

Browse files
committed
auth: Allow auth_verbose_passwords=yes as an alias for "plain".
1 parent a5bcc9f commit 3190f12

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/auth/auth-settings.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ auth_settings_set_self_ips(struct auth_settings *set, pool_t pool,
330330
}
331331

332332
static bool
333-
auth_verify_verbose_password(const struct auth_settings *set,
333+
auth_verify_verbose_password(struct auth_settings *set,
334334
const char **error_r)
335335
{
336336
const char *p, *value = set->verbose_passwords;
@@ -351,7 +351,11 @@ auth_verify_verbose_password(const struct auth_settings *set,
351351
return TRUE;
352352
else if (strcmp(value, "sha1") == 0)
353353
return TRUE;
354-
else {
354+
else if (strcmp(value, "yes") == 0) {
355+
/* just use it as alias for "plain" */
356+
set->verbose_passwords = "plain";
357+
return TRUE;
358+
} else {
355359
*error_r = "auth_verbose_passwords: Invalid value";
356360
return FALSE;
357361
}

0 commit comments

Comments
 (0)