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>
diff --git a/phosphor-ldap-config/main.cpp b/phosphor-ldap-config/main.cpp
index adbfdd3..3ecc0ca 100644
--- a/phosphor-ldap-config/main.cpp
+++ b/phosphor-ldap-config/main.cpp
@@ -14,9 +14,7 @@
fs::path configDir = fs::path(LDAP_CONFIG_FILE).parent_path();
if (!fs::exists(configDir / phosphor::ldap::defaultNslcdFile) ||
- !fs::exists(configDir / phosphor::ldap::nsSwitchFile) ||
- (!fs::exists(configDir / phosphor::ldap::LDAPNsSwitchFile) &&
- !fs::exists(configDir / phosphor::ldap::linuxNsSwitchFile)))
+ !fs::exists(configDir / phosphor::ldap::nsSwitchFile))
{
log<level::ERR>("Error starting LDAP Config App, configfile(s) are "
"missing, exiting!!!");