MXS-2414: Add max_auth_failures parameter

The parameter controls how many authentication failures are allowed until
the host is blocked. The default is 10 failures per thread.
This commit is contained in:
Markus Mäkelä
2019-04-24 09:37:36 +03:00
parent cf86b0cb7e
commit db0e491ace
5 changed files with 41 additions and 5 deletions

View File

@ -136,6 +136,7 @@ extern const char CN_LISTENERS[];
extern const char CN_LOCALHOST_MATCH_WILDCARD_HOST[];
extern const char CN_LOG_AUTH_WARNINGS[];
extern const char CN_LOG_THROTTLING[];
extern const char CN_MAX_AUTH_FAILURES[];
extern const char CN_MAX_CONNECTIONS[];
extern const char CN_MAX_RETRY_INTERVAL[];
extern const char CN_MAXSCALE[];
@ -549,6 +550,7 @@ struct MXS_CONFIG
char peer_password[MAX_ADMIN_HOST_LEN]; /**< Password for maxscale-to-maxscale traffic */
mxb_log_target_t log_target; /**< Log type */
bool load_persisted_configs; /**< Load persisted configuration files on startup */
int max_auth_failures; /**< Host is blocked once this limit is reached */
};
/**