| 12345678910111213141516171819202122 |
- #include "interfaces.h"
- struct ldap;
- class LDAPReader: public IMySQLLDAPAuthModule
- {
- public:
- LDAPReader(const std::string& uri, const std::string& attribute, const std::string& baseDn, const std::string& filter="");
- ~LDAPReader();
- bool Authenticate(const std::string& username, const std::string& password) override;
- private:
- struct ldap* InitConnection();
- bool CheckFilter(struct ldap* ldapHandler, const std::string& base);
- const std::string uri;
- const std::string attribute;
- const std::string baseDn;
- const std::string filter;
- };
|