
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.
26 lines
774 B
C++
26 lines
774 B
C++
/*
|
|
* Copyright (c) 2016 MariaDB Corporation Ab
|
|
*
|
|
* Use of this software is governed by the Business Source License included
|
|
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
|
|
*
|
|
* Change Date: 2022-01-01
|
|
*
|
|
* On the date above, in accordance with the Business Source License, use
|
|
* of this software will be governed by version 2 or later of the General
|
|
* Public License.
|
|
*/
|
|
|
|
/**
|
|
* Set values for constants shared between both PAMAuth and PAMBackendAuth
|
|
*/
|
|
#include "pam_auth_common.hh"
|
|
|
|
/* PAM client helper plugin name, TODO: add support for "mysql_clear_password" */
|
|
const std::string DIALOG = "dialog";
|
|
/* The total storage required */
|
|
const int DIALOG_SIZE = DIALOG.length() + 1;
|
|
/* First query from server */
|
|
const std::string PASSWORD = "Password: ";
|
|
|