From 95a2931473dfa61a30e7a65606dab15ab24cd5b4 Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Mon, 18 Feb 2019 20:34:10 +0530 Subject: LDAP: Add the persistency for the "Enabled" property This property will control that whether the LDAP service would be started or not. We are persisting this property using cereal, other properties is being persisted through nslcd.conf, nslcd doesn't give us a way to put this property under nslcd.conf. Tested By: Test the persistency of enabled property. Verified that it was getting persisted across restart/reboot. Change-Id: Id64b23b71865bac15d3be2d79abad615aa576bea Signed-off-by: Ratan Gupta --- phosphor-ldap-config/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phosphor-ldap-config/main.cpp') diff --git a/phosphor-ldap-config/main.cpp b/phosphor-ldap-config/main.cpp index 3ecc0ca..2e3bf66 100644 --- a/phosphor-ldap-config/main.cpp +++ b/phosphor-ldap-config/main.cpp @@ -26,7 +26,7 @@ int main(int argc, char* argv[]) sdbusplus::server::manager::manager objManager(bus, LDAP_CONFIG_ROOT); phosphor::ldap::ConfigMgr mgr(bus, LDAP_CONFIG_ROOT, LDAP_CONFIG_FILE, - TLS_CACERT_FILE); + LDAP_CONF_PERSIST_PATH, TLS_CACERT_FILE); bus.request_name(LDAP_CONFIG_BUSNAME); -- cgit v1.2.1