test.cpp 274 B

12345678910111213
  1. #include <iostream>
  2. #include "ldapReader.h"
  3. #define LDAP_TEST_USERID "foo"
  4. #define LDAP_TEST_PASSWD "bar"
  5. int main()
  6. {
  7. LDAPReader reader(LDAP_URI, LDAP_ATTRIBUTE, LDAP_BASEDN);
  8. std::cout << reader.Authenticate(LDAP_TEST_USERID, LDAP_TEST_PASSWD) << std::endl;
  9. }