SlHelpers
Loading...
Searching...
No Matches
SlKernCVS::LDAPUsers Class Reference

Class to fetch LDAP users. More...

#include <LDAP.h>

Public Types

using UserSet
 Set of users.

Public Member Functions

 LDAPUsers (const std::string &dn, const std::string &password)
 Construct a new LDAPUsers object.
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.

Member Typedef Documentation

◆ UserSet

Initial value:
std::unordered_set<std::string, SlHelpers::String::Hash,
Equality test for string and string_view to be used in containers.
Definition String.h:258
Hash for string and string_view to be used in hashing containers.
Definition String.h:231

Set of 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:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260626.4928fc7-build/slhelpers-20260626.4928fc7/include/kerncvs/LDAP.h