1 #include "gen-cpp/LdapTest.h"
4 #include <boost/shared_ptr.hpp>
9 using namespace apache::thrift;
11 using namespace apache::thrift::transport;
12 using namespace apache::thrift::server;
13 using namespace apache::thrift::concurrency;
29 using namespace impala;
31 int main(
int argc,
char** argv) {
37 LdapAuthProvider auth;
39 shared_ptr<TProcessor> ldap_processor(
new LdapTestProcessor(handler));
42 ThriftServer svr(
"ldap-server", ldap_processor, 12345, provider);
DECLARE_string(principal)
const StringSearch UrlParser::protocol_search & protocol
int main(int argc, char **argv)
void InitCommonRuntime(int argc, char **argv, bool init_jvm, TestInfo::Mode m=TestInfo::NON_TEST)
void Join()
Blocks until the server stops and exits its main thread.
virtual Status Start()=0
Initialises any state required to perform authentication using this provider.
#define EXIT_IF_ERROR(stmt)
Status InitAuth(const std::string &appname)