diff options
Diffstat (limited to 'phosphor-ldap-mapper/main.cpp')
-rw-r--r-- | phosphor-ldap-mapper/main.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/phosphor-ldap-mapper/main.cpp b/phosphor-ldap-mapper/main.cpp new file mode 100644 index 0000000..b4a0650 --- /dev/null +++ b/phosphor-ldap-mapper/main.cpp @@ -0,0 +1,25 @@ +#include <string> +#include <experimental/filesystem> +#include "config.h" +#include "ldap_mapper_mgr.hpp" + +int main(int argc, char** argv) +{ + auto bus = sdbusplus::bus::new_default(); + sdbusplus::server::manager::manager objManager( + bus, phosphor::user::mapperMgrRoot); + + phosphor::user::LDAPMapperMgr mapperMgr(bus, phosphor::user::mapperMgrRoot); + + // Claim the bus name for the application + bus.request_name(LDAP_MAPPER_MANAGER_BUSNAME); + + // Wait for client request + while (true) + { + // Process D-Bus calls + bus.process_discard(); + bus.wait(); + } + return 0; +} |