From ba9f9a6cebfbb7a12ecf869afa0cdc5aef9c8372 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Wed, 11 Oct 2017 16:40:35 -0700 Subject: Update Webserver Upate get_routes to use the correct constness for its use case crow to set json_mode if json value is populated Delete std::array bytes API due to major efficiency issues. To be replaced with span API in near future Implement a catch block for handlers that can throw exceptions Implement direct handling of routes that end with / to better support redfish. /foo and /foo/ now invoke the same handler insead of issuing a 301 redirect Update nlohmann to latest version Implement one nlohmann endpoint with exceptions disabled Implement first pass at a IBM style rest-dbus interface Fix pam authentication to call dropbear auth methods Implements first pass at redfish interface. Shemas avaialble pass redfish validation 100% Use response json object rather than request json object. Update authorization middleware to be redfish compliant UPdate random token generation to be more efficient, and not base64 bytes, generate bytes directly Change-Id: I63cc2005c1a21f5c2f5168777a4e09f3c965a34f --- include/pam_authenticate.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/pam_authenticate.hpp') diff --git a/include/pam_authenticate.hpp b/include/pam_authenticate.hpp index 0825dd6d9f..d0ca1b0398 100644 --- a/include/pam_authenticate.hpp +++ b/include/pam_authenticate.hpp @@ -37,7 +37,7 @@ inline bool pam_authenticate_user(const std::string& username, pam_function_conversation, const_cast(password.c_str())}; pam_handle_t* local_auth_handle = NULL; // this gets set by pam_start - if (pam_start("su", username.c_str(), &local_conversation, + if (pam_start("dropbear", username.c_str(), &local_conversation, &local_auth_handle) != PAM_SUCCESS) { return false; } -- cgit v1.2.3