blob: b4a06502a1caa08faffb96596663e1b4e12fcef3 [file] [log] [blame]
Tom Joseph536ea322018-09-14 10:02:20 +05301#include <string>
2#include <experimental/filesystem>
3#include "config.h"
4#include "ldap_mapper_mgr.hpp"
5
6int main(int argc, char** argv)
7{
8 auto bus = sdbusplus::bus::new_default();
9 sdbusplus::server::manager::manager objManager(
10 bus, phosphor::user::mapperMgrRoot);
11
12 phosphor::user::LDAPMapperMgr mapperMgr(bus, phosphor::user::mapperMgrRoot);
13
14 // Claim the bus name for the application
15 bus.request_name(LDAP_MAPPER_MANAGER_BUSNAME);
16
17 // Wait for client request
18 while (true)
19 {
20 // Process D-Bus calls
21 bus.process_discard();
22 bus.wait();
23 }
24 return 0;
25}