summaryrefslogtreecommitdiffstats
path: root/phosphor-ldap-config/ldap_configuration.cpp
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2018-10-28 06:53:25 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-11-19 21:37:57 -0500
commit5088e54473b49b40e5ceab2fae2999619f31b7d3 (patch)
tree705275d93bc109f11bf52d4c1f368851956f3123 /phosphor-ldap-config/ldap_configuration.cpp
parent3b4d06a1812566d4095524f2242e272e0b9f449f (diff)
downloadphosphor-user-manager-5088e54473b49b40e5ceab2fae2999619f31b7d3.tar.gz
phosphor-user-manager-5088e54473b49b40e5ceab2fae2999619f31b7d3.zip
React to nsswitch config file changes
There's just one nsswitch config file now (instead of a default, an _linux and an _ldap). Make fixes in code relevant to this. Change-Id: I92362aac7a1f5e034cea06e9299f7e574dc2fab9 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
Diffstat (limited to 'phosphor-ldap-config/ldap_configuration.cpp')
-rw-r--r--phosphor-ldap-config/ldap_configuration.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/phosphor-ldap-config/ldap_configuration.cpp b/phosphor-ldap-config/ldap_configuration.cpp
index be6c1cc..8503929 100644
--- a/phosphor-ldap-config/ldap_configuration.cpp
+++ b/phosphor-ldap-config/ldap_configuration.cpp
@@ -53,9 +53,6 @@ void Config::delete_()
fs::copy_file(configDir / defaultNslcdFile, LDAP_CONFIG_FILE,
fs::copy_options::overwrite_existing);
-
- fs::copy_file(configDir / linuxNsSwitchFile, configDir / nsSwitchFile,
- fs::copy_options::overwrite_existing);
}
catch (const std::exception& e)
{
@@ -441,18 +438,6 @@ std::string
// With current implementation we support only one LDAP server.
deleteObject();
- try
- {
- fs::path configDir = fs::path(configFilePath.c_str()).parent_path();
- fs::copy_file(configDir / LDAPNsSwitchFile, configDir / nsSwitchFile,
- fs::copy_options::overwrite_existing);
- }
- catch (const std::exception& e)
- {
- log<level::ERR>("Failed to rename Config Files while creating Object",
- entry("ERR=%s", e.what()));
- elog<InternalFailure>();
- }
auto objPath = std::string(LDAP_CONFIG_DBUS_OBJ_PATH);
configPtr = std::make_unique<Config>(
OpenPOWER on IntegriCloud