summaryrefslogtreecommitdiff
path: root/src/webserver_main.cpp
diff options
context:
space:
mode:
authorJames Feist <james.feist@linux.intel.com>2019-12-10 19:52:14 +0300
committerJames Feist <james.feist@linux.intel.com>2019-12-10 20:22:47 +0300
commit7166bf0fd7453f2b5d6bfb3afbdad5eb00f74990 (patch)
treea75ffbf37684d15df4dd01b8a1cc3a28f1495a55 /src/webserver_main.cpp
parent4dcc3f92c8725e2424c7792908c44311e484a429 (diff)
downloadbmcweb-7166bf0fd7453f2b5d6bfb3afbdad5eb00f74990.tar.xz
Revert "Fix authorization for LDAP users"
This reverts commit 5e931ae994307babe6c3520cbaca6a7139acc81d. Reason for revert: Causing build failures /bmcweb/redfish-core/include/node.hpp: In member function ‘bool redfish::Node::isAllowedWithoutConfigureSelf(const crow::Request&)’: /bmcweb/redfish-core/include/node.hpp:182:36: error: ‘crow::persistent_data::UserRoleMap’ has not been declared crow::persistent_data::UserRoleMap::getInstance().getUserRole( When 900f949773795141266271107219ea019f2839cd was merged first this patch was not successfully rebased. Change-Id: I947d96362c7dadea5572888468a11fac5ee361d4 Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'src/webserver_main.cpp')
-rw-r--r--src/webserver_main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 901c180366..a2da120188 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -108,6 +108,10 @@ int main(int argc, char** argv)
redfish::RedfishService redfish(app);
+ // Keep the user role map hot in memory and
+ // track the changes using match object
+ crow::persistent_data::UserRoleMap::getInstance();
+
app.run();
io->run();