Adding Def user creation using Intel OEM command
New Def user is created based on given username and pwd
Tested: New user is created successfully using this cmd.
ipmitool -I LAN raw OEMNefn Cmd <16 bytes username><20 bytes Pwd>
new username and password is set in user id 2 on top of def user
Added more restriction like works only in LAN,system interface
should not available,LAN should be configured in static and
user 2 should not enabled or configured previously.
Command work only with user created with callback priv by default
Change-Id: I77809e18fbef8e82ae2ba27527698e7fa5c5fd85
Signed-off-by: Suryakanth Sekar <suryakanth.sekar@linux.intel.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5521d6..891e1d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,6 +40,7 @@
include_directories (${CMAKE_BINARY_DIR}/phosphor-logging-src)
link_directories (${CMAKE_BINARY_DIR}/phosphor-logging-src/.libs)
include_directories (${CMAKE_BINARY_DIR}/phosphor-ipmi-host/include)
+ include_directories (${CMAKE_BINARY_DIR}/ipmid/user_channel)
include_directories (${CMAKE_BINARY_DIR}) # link_directories
# (${CMAKE_BINARY_DIR}/sdbusplus-
# src/.libs)
@@ -85,5 +86,7 @@
target_link_libraries (zinteloemcmds ipmid)
target_link_libraries (zinteloemcmds sdbusplus)
target_link_libraries (zinteloemcmds phosphor_logging)
+target_link_libraries (zinteloemcmds -luserlayer)
+target_link_libraries (zinteloemcmds -lchannellayer)
install (TARGETS zinteloemcmds DESTINATION lib/ipmid-providers)