static void client_auth_waiting_timeout(struct client *client) { if (!client->notified_auth_ready) { client_log_warn(client, "Auth process not responding, " "delayed sending initial response (greeting)"); } client_notify_status(client, FALSE, client->master_tag == 0 ? AUTH_SERVER_WAITING_MSG : AUTH_MASTER_WAITING_MSG); timeout_remove(&client->to_auth_waiting); }
bool client_check_plaintext_auth(struct client *client, bool pass_sent) { if (client->secured || !client->set->disable_plaintext_auth) return TRUE; if (client->set->auth_verbose) { client_log(client, "Login failed: " "Plaintext authentication disabled"); } if (pass_sent) { client_notify_status(client, TRUE, "Plaintext authentication not allowed " "without SSL/TLS, but your client did it anyway. " "If anyone was listening, the password was exposed."); } client_auth_result(client, CLIENT_AUTH_RESULT_SSL_REQUIRED, NULL, AUTH_PLAINTEXT_DISABLED_MSG); client->auth_tried_disabled_plaintext = TRUE; client->auth_attempts++; return FALSE; }