summaryrefslogtreecommitdiffstats
path: root/phosphor-ldap-mapper/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'phosphor-ldap-mapper/main.cpp')
-rw-r--r--phosphor-ldap-mapper/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/phosphor-ldap-mapper/main.cpp b/phosphor-ldap-mapper/main.cpp
index b4a0650..15c9802 100644
--- a/phosphor-ldap-mapper/main.cpp
+++ b/phosphor-ldap-mapper/main.cpp
@@ -11,6 +11,12 @@ int main(int argc, char** argv)
phosphor::user::LDAPMapperMgr mapperMgr(bus, phosphor::user::mapperMgrRoot);
+ // Create a directory to persist errors.
+ std::experimental::filesystem::create_directories(LDAP_MAPPER_PERSIST_PATH);
+
+ // Restore the serialized LDAP group privilege mapping.
+ mapperMgr.restore();
+
// Claim the bus name for the application
bus.request_name(LDAP_MAPPER_MANAGER_BUSNAME);
OpenPOWER on IntegriCloud