SlHelpers
SlKernCVS::LDAPUsers Class Reference

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 UserSetuserSet () 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.
 

Detailed Description

Class to fetch LDAP users.

Constructor & Destructor Documentation

◆ LDAPUsers()

SlKernCVS::LDAPUsers::LDAPUsers ( const std::string &  dn,
const std::string &  password 
)

Construct a new LDAPUsers object.

Parameters
dnThe distinguished name to bind to the LDAP server.
passwordThe password for the distinguished name.

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