|
| enum | PasswordType { NOT_FOUND
, PLAIN_TEXT
, MYSQL_HASH
} |
| typedef std::pair< PasswordType, std::string > | PasswordEntry |
| typedef std::pair< std::string, PasswordEntry > | UserEntry |
| typedef std::map< std::string, PasswordEntry > | UserCache |
Definition at line 60 of file auth_ldap.cc.
◆ PasswordEntry
| typedef std::pair<PasswordType, std::string> auth_ldap::AuthLDAP::PasswordEntry |
|
private |
◆ UserCache
| typedef std::map<std::string, PasswordEntry> auth_ldap::AuthLDAP::UserCache |
|
private |
◆ UserEntry
| typedef std::pair<std::string, PasswordEntry> auth_ldap::AuthLDAP::UserEntry |
|
private |
◆ PasswordType
| enum auth_ldap::AuthLDAP::PasswordType |
|
private |
◆ AuthLDAP()
| auth_ldap::AuthLDAP::AuthLDAP |
( |
string | name_arg | ) |
|
◆ ~AuthLDAP()
| auth_ldap::AuthLDAP::~AuthLDAP |
( |
| ) |
|
◆ authenticate()
Base class method to check authentication for a user.
Definition at line 203 of file auth_ldap.cc.
◆ connect()
| bool auth_ldap::AuthLDAP::connect |
( |
void | | ) |
|
Connect to the LDAP server.
- Returns
- True on success, false otherwise.
Definition at line 161 of file auth_ldap.cc.
◆ getError()
| string & auth_ldap::AuthLDAP::getError |
( |
void | | ) |
|
Retrieve the last error encountered in the class.
Definition at line 198 of file auth_ldap.cc.
◆ initialize()
| bool auth_ldap::AuthLDAP::initialize |
( |
void | | ) |
|
Initialize the LDAP connection.
- Returns
- True on success, false otherwise.
Definition at line 149 of file auth_ldap.cc.
◆ lookupUser()
| void auth_ldap::AuthLDAP::lookupUser |
( |
const string & | user | ) |
|
|
private |
Lookup a user in LDAP.
- Parameters
-
Definition at line 273 of file auth_ldap.cc.
◆ verifyMySQLHash()
| bool auth_ldap::AuthLDAP::verifyMySQLHash |
( |
const PasswordEntry & | password, |
|
|
const string & | scramble_bytes, |
|
|
const string & | scrambled_password ) |
|
private |
Verify the local and remote scrambled password match using the MySQL hashing algorithm.
- Parameters
-
| [in] | password | Plain text password that is stored locally. |
| [in] | scramble_bytes | The random bytes that the server sent to the client for scrambling the password. |
| [in] | scrambled_password | The result of the client scrambling the password remotely. |
- Returns
- True if the password matched, false if not.
Definition at line 356 of file auth_ldap.cc.
◆ error
| string auth_ldap::AuthLDAP::error |
|
private |
◆ ldap
| LDAP* auth_ldap::AuthLDAP::ldap |
|
private |
◆ lock
| pthread_rwlock_t auth_ldap::AuthLDAP::lock |
|
private |
◆ next_cache_expiration
| time_t auth_ldap::AuthLDAP::next_cache_expiration |
|
private |
◆ users
| UserCache auth_ldap::AuthLDAP::users |
|
private |
The documentation for this class was generated from the following file: