MySQL 8.4.2
Source Code Documentation
|
Class representing GSSAPI/Kerberos mechanism. More...
#include <auth_ldap_sasl_mechanism.h>
Public Member Functions | |
Sasl_mechanism_kerberos () | |
Constructor. More... | |
~Sasl_mechanism_kerberos () override=default | |
Destructor. More... | |
bool | preauthenticate (const char *user, const char *password) override |
Preauthentication step. More... | |
const char * | get_ldap_host () override |
Get LDAP host. More... | |
bool | get_default_user (std::string &name) override |
Get default user name. More... | |
const sasl_callback_t * | get_callbacks () override |
Gets array of SASL callbacks supported by the mechanism. More... | |
bool | require_conclude_by_server () override |
GSSAPI authentication must be concluded by MySQL server. More... | |
Public Member Functions inherited from auth_ldap_sasl_client::Sasl_mechanism | |
virtual | ~Sasl_mechanism ()=default |
Destructor. More... | |
const char * | get_mechanism_name () |
Gets constans string describing mechanism name. More... | |
Private Attributes | |
std::string | m_ldap_server_host |
URL of the LDAP server. More... | |
Kerberos | m_kerberos |
Kerberos object used to perform Kerberos operations. More... | |
Static Private Attributes | |
static const sasl_callback_t | callbacks [] |
Array of SASL callbacks supported by this mechanism. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from auth_ldap_sasl_client::Sasl_mechanism | |
static bool | create_sasl_mechanism (const char *mechanism_name, Sasl_mechanism *&mechanism) |
SASL mechanism factory function. More... | |
Static Public Attributes inherited from auth_ldap_sasl_client::Sasl_mechanism | |
static const char | SASL_GSSAPI [] = "GSSAPI" |
GSSAPI string. More... | |
static const char | SASL_SCRAM_SHA1 [] = "SCRAM-SHA-1" |
SCRAM-SHA-1 string. More... | |
static const char | SASL_SCRAM_SHA256 [] = "SCRAM-SHA-256" |
SCRAM-SHA-256 string. More... | |
Protected Member Functions inherited from auth_ldap_sasl_client::Sasl_mechanism | |
Sasl_mechanism (const char *mechanism_name) | |
Constructor. More... | |
Class representing GSSAPI/Kerberos mechanism.
|
inline |
Constructor.
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
Gets array of SASL callbacks supported by the mechanism.
Reimplemented from auth_ldap_sasl_client::Sasl_mechanism.
|
overridevirtual |
Get default user name.
Called if no user name was provided as parameter to the client. The name is the default principal.
name | [out] default user name |
true | success |
false | failure |
Reimplemented from auth_ldap_sasl_client::Sasl_mechanism.
|
overridevirtual |
Get LDAP host.
Reimplemented from auth_ldap_sasl_client::Sasl_mechanism.
|
overridevirtual |
Preauthentication step.
Obtains Kerberos ticket.
user | [in] user mname |
password | [in] user password |
true | success |
false | failure |
Reimplemented from auth_ldap_sasl_client::Sasl_mechanism.
|
inlineoverridevirtual |
GSSAPI authentication must be concluded by MySQL server.
Reimplemented from auth_ldap_sasl_client::Sasl_mechanism.
|
staticprivate |
Array of SASL callbacks supported by this mechanism.
|
private |
Kerberos object used to perform Kerberos operations.
|
private |
URL of the LDAP server.