|
SlHelpers
|
Class to fetch LDAP users. More...
#include <LDAP.h>
Public Types | |
| using | UserSet = std::unordered_set< std::string, SlHelpers::String::Hash, SlHelpers::String::Eq > |
| Set of users. | |
Public Member Functions | |
| LDAPUsers (const std::string &dn, const std::string &password) | |
| Construct a new LDAPUsers object. More... | |
| const UserSet & | userSet () const & |
| Get the set of users fetched from LDAP. | |
| UserSet | userSet () && |
| Get the set of users fetched from LDAP (rvalue). | |
| bool | contains (const std::string &key) const noexcept |
| Check if a user is in the set of users fetched from LDAP. | |
Class to fetch LDAP users.
| SlKernCVS::LDAPUsers::LDAPUsers | ( | const std::string & | dn, |
| const std::string & | password | ||
| ) |
Construct a new LDAPUsers object.
| dn | The distinguished name to bind to the LDAP server. |
| password | The password for the distinguished name. |