interfaces.h 337 B

123456789101112131415
  1. #pragma once
  2. #include <string>
  3. #define LDAP_URI "ldap://localhost:389"
  4. #define LDAP_ATTRIBUTE "uid"
  5. #define LDAP_BASEDN "ou=users,dc=example,dc=org"
  6. class IMySQLLDAPAuthModule
  7. {
  8. public:
  9. virtual ~IMySQLLDAPAuthModule() {};
  10. virtual bool Authenticate(const std::string& username, const std::string& password) =0;
  11. };