Enable local users in the authentication reset cmd
Along with resetting the password and disabling LDAP,
local users should also be enabled again so one can
ssh into the system with a local user account again.
This is accomplished by setting the UserEnabled property
on every user object.
Tested: Saw users were enabled when running
ipmitool raw 0x3a 0x11 from the host.
Change-Id: I5a313cf82e2596cb797b8b9431631a3fe4ffca8d
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/local_users.hpp b/local_users.hpp
new file mode 100644
index 0000000..e447a25
--- /dev/null
+++ b/local_users.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <host-ipmid/ipmid-api.h>
+
+namespace local
+{
+namespace users
+{
+
+/**
+ * @brief Enable all local BMC users
+ *
+ * Sets the UserEnabled property on all
+ * /xyz/openbmc_project/user/<user> objects.
+ *
+ * @return ipmi_ret_t - IPMI CC
+ */
+ipmi_ret_t enableUsers();
+
+}
+}