Fix for ipmiUserSetUserName
Corrected ipmiUserSetUserName API signature
Tested:
1. Set username
Command: ipmitool -I lanplus -C 3 -p 623 -U root -P <password> -H <BMC-IP> user
set name 5 WIJGueNK
Response: //Success
2. List users
ipmitool user list 1
ID Name Callin Link Auth IPMI Msg Channel Priv Limit
1 root false true true ADMINISTRATOR
2 true false false NO ACCESS
3 true false false NO ACCESS
4 true false false NO ACCESS
5 WIJGueNK true false false NO ACCESS
Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: I09e849478cc75c88ed7389633c3002d75f1c9b09
diff --git a/user_channel/user_layer.hpp b/user_channel/user_layer.hpp
index 26f980a..b0d0d4c 100644
--- a/user_channel/user_layer.hpp
+++ b/user_channel/user_layer.hpp
@@ -141,7 +141,7 @@
*
* @return ccSuccess for success, others for failure.
*/
-Cc ipmiUserSetUserName(const uint8_t userId, const std::string& userName);
+Cc ipmiUserSetUserName(const uint8_t userId, const char* userName);
/** @brief set user password
*