MXS-2479 Accept additional messages in PAM authenticator
Plugins may send additional messages during authentication. These messages often contain notifications such as password expiration dates. Both the client and backend side authenticators now handle such messages. The messages are not sent to the user, only the log. The requirement that only "Password: " is queried still stands.
This commit is contained in:
@ -21,7 +21,6 @@
|
||||
extern const std::string DIALOG;
|
||||
extern const std::string PASSWORD;
|
||||
extern const int DIALOG_SIZE;
|
||||
extern const char GENERAL_ERRMSG[];
|
||||
|
||||
/** PAM authentication states */
|
||||
enum pam_auth_state
|
||||
@ -33,7 +32,7 @@ enum pam_auth_state
|
||||
};
|
||||
|
||||
/* Magic numbers from server source
|
||||
* https://github.com/MariaDB/server/blob/10.2/plugin/auth_pam/auth_pam.c */
|
||||
* https://github.com/MariaDB/server/blob/10.2/plugin/auth_pam/auth_pam.c */
|
||||
enum dialog_plugin_msg_types
|
||||
{
|
||||
DIALOG_ECHO_ENABLED = 2,
|
||||
|
Reference in New Issue
Block a user