ldapReader.h 457 B

123456789101112131415161718
  1. #include "interfaces.h"
  2. class LDAPReader: public IMySQLLDAPAuthModule
  3. {
  4. public:
  5. LDAPReader(const std::string& uri, const std::string& attribute, const std::string& baseDn);
  6. ~LDAPReader();
  7. bool Authenticate(const std::string& username, const std::string& password) override;
  8. private:
  9. void* InitConnection();
  10. const std::string uri;
  11. const std::string attribute;
  12. const std::string baseDn;
  13. };