MySQL 8.0.39
Source Code Documentation
auth_kerberos_context::Kerberos Class Reference

#include <kerberos_core.h>

Public Member Functions

 Kerberos (const char *user, const char *password)
 
 ~Kerberos ()
 
bool obtain_store_credentials ()
 
bool get_upn (std::string *name)
 
void destroy_credentials ()
 

Private Member Functions

bool setup ()
 
void cleanup ()
 
void log (int error_code)
 
krb5_error_code store_credentials ()
 
krb5_error_code obtain_credentials ()
 
bool credential_valid ()
 
bool get_kerberos_config ()
 

Private Attributes

bool m_initialized
 
std::string m_upn
 
std::string m_password
 
int m_destroy_tickets
 
krb5_context m_context
 
krb5_ccache m_krb_credentials_cache
 
krb5_creds m_credentials
 
bool m_credentials_created
 

Constructor & Destructor Documentation

◆ Kerberos()

auth_kerberos_context::Kerberos::Kerberos ( const char *  user,
const char *  password 
)

◆ ~Kerberos()

auth_kerberos_context::Kerberos::~Kerberos ( )

Member Function Documentation

◆ cleanup()

void auth_kerberos_context::Kerberos::cleanup ( )
private

◆ credential_valid()

bool auth_kerberos_context::Kerberos::credential_valid ( )
private

◆ destroy_credentials()

void auth_kerberos_context::Kerberos::destroy_credentials ( )

◆ get_kerberos_config()

bool auth_kerberos_context::Kerberos::get_kerberos_config ( )
private

◆ get_upn()

bool auth_kerberos_context::Kerberos::get_upn ( std::string *  name)

◆ log()

void auth_kerberos_context::Kerberos::log ( int  error_code)
private

◆ obtain_credentials()

krb5_error_code auth_kerberos_context::Kerberos::obtain_credentials ( )
private

◆ obtain_store_credentials()

bool auth_kerberos_context::Kerberos::obtain_store_credentials ( )

◆ setup()

bool auth_kerberos_context::Kerberos::setup ( )
private

◆ store_credentials()

krb5_error_code auth_kerberos_context::Kerberos::store_credentials ( )
private

Member Data Documentation

◆ m_context

krb5_context auth_kerberos_context::Kerberos::m_context
private

◆ m_credentials

krb5_creds auth_kerberos_context::Kerberos::m_credentials
private

◆ m_credentials_created

bool auth_kerberos_context::Kerberos::m_credentials_created
private

◆ m_destroy_tickets

int auth_kerberos_context::Kerberos::m_destroy_tickets
private

◆ m_initialized

bool auth_kerberos_context::Kerberos::m_initialized
private

◆ m_krb_credentials_cache

krb5_ccache auth_kerberos_context::Kerberos::m_krb_credentials_cache
private

◆ m_password

std::string auth_kerberos_context::Kerberos::m_password
private

◆ m_upn

std::string auth_kerberos_context::Kerberos::m_upn
private

The documentation for this class was generated from the following files: