interfaces.h 360 B

12345678910111213141516
  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. #define LDAP_FILTER ""
  7. class IMySQLLDAPAuthModule
  8. {
  9. public:
  10. virtual ~IMySQLLDAPAuthModule() {};
  11. virtual bool Authenticate(const std::string& username, const std::string& password) =0;
  12. };