}
return FALSE;
}
- if (client->set->disable_plaintext_auth)
+ if (!client->set->auth_allow_cleartext)
return TRUE;
if (strcmp(client->ssl_set->ssl, "required") == 0)
return TRUE;
{
bool ssl_required = (strcmp(client->ssl_set->ssl, "required") == 0);
- if (client->secured || (!client->set->disable_plaintext_auth &&
+ if (client->secured || (client->set->auth_allow_cleartext &&
!ssl_required))
return TRUE;
DEF(BOOL, auth_ssl_require_client_cert),
DEF(BOOL, auth_ssl_username_from_cert),
- DEF(BOOL, disable_plaintext_auth),
+ DEF(BOOL, auth_allow_cleartext),
DEF(BOOL, auth_verbose),
DEF(BOOL, auth_debug),
DEF(BOOL, verbose_proctitle),
.auth_ssl_require_client_cert = FALSE,
.auth_ssl_username_from_cert = FALSE,
- .disable_plaintext_auth = TRUE,
+ .auth_allow_cleartext = FALSE,
.auth_verbose = FALSE,
.auth_debug = FALSE,
.verbose_proctitle = FALSE,
bool auth_ssl_require_client_cert;
bool auth_ssl_username_from_cert;
- bool disable_plaintext_auth;
+ bool auth_allow_cleartext;
bool auth_verbose;
bool auth_debug;
bool auth_debug_passwords;
c) we allow insecure authentication
*/
if ((fmech.flags & MECH_SEC_PRIVATE) == 0 &&
- (client->secured || !client->set->disable_plaintext_auth ||
+ (client->secured || client->set->auth_allow_cleartext ||
(fmech.flags & MECH_SEC_PLAINTEXT) == 0))
ret_mech[j++] = fmech;
}
i_assert(!private || (mech->flags & MECH_SEC_PRIVATE) != 0);
- if (!client->secured && client->set->disable_plaintext_auth &&
+ if (!client->secured && !client->set->auth_allow_cleartext &&
(mech->flags & MECH_SEC_PLAINTEXT) != 0) {
sasl_server_auth_failed(client,
"Plaintext authentication disabled.",
if (client_is_tls_enabled(&client->common) && !client->common.tls)
str_append(str, "STLS\r\n");
- if (!client->common.set->disable_plaintext_auth ||
+ if (client->common.set->auth_allow_cleartext ||
client->common.secured)
str_append(str, "USER\r\n");