Lines Matching full:user
29 #include <xyz/openbmc_project/User/AccountPolicy/server.hpp>
30 #include <xyz/openbmc_project/User/Manager/server.hpp>
31 #include <xyz/openbmc_project/User/MultiFactorAuthConfiguration/server.hpp>
32 #include <xyz/openbmc_project/User/TOTPState/server.hpp>
42 namespace user namespace
52 using UserMgrIface = sdbusplus::xyz::openbmc_project::User::server::Manager;
56 sdbusplus::xyz::openbmc_project::User::server::AccountPolicy;
59 sdbusplus::xyz::openbmc_project::User::server::MultiFactorAuthConfiguration;
61 using TOTPStateIface = sdbusplus::xyz::openbmc_project::User::server::TOTPState;
88 using MultiFactorAuthType = sdbusplus::common::xyz::openbmc_project::user::
202 * @brief Responsible for managing user accounts over the D-Bus interface.
221 /** @brief create user method.
222 * This method creates a new user as requested
224 * @param[in] userName - Name of the user which has to be created
225 * @param[in] groupNames - Group names list, to which user has to be added.
226 * @param[in] priv - Privilege of the user.
227 * @param[in] enabled - State of the user enabled / disabled.
232 /** @brief rename user method.
233 * This method renames the user as requested
235 * @param[in] userName - current name of the user
236 * @param[in] newUserName - new user name to which it has to be renamed.
240 /** @brief delete user method.
241 * This method deletes the user as requested
243 * @param[in] userName - Name of the user which has to be deleted
247 /** @brief Update user groups & privilege.
248 * This method updates user groups & privilege
250 * @param[in] userName - user name, for which update is requested
258 /** @brief Update user enabled state.
259 * This method enables / disables user
261 * @param[in] userName - user name, for which update is requested
262 * @param[in] enabled - enable / disable the user
266 /** @brief get user enabled state
267 * method to get user enabled state.
269 * @param[in] userName - name of the user
270 * @return - user enabled status (true/false)
303 /** @brief parses the faillock output for locked user status
305 * @param[in] - output from faillock for the user
306 * @return - true / false indicating user locked / un-locked
311 /** @brief lists user locked state for failed attempt
313 * @param[in] - user name
314 * @return - true / false indicating user locked / un-locked
318 /** @brief lists user locked state for failed attempt
320 * @param[in]: user name
321 * @param[in]: value - false -unlock user account, true - no action taken
326 /** @brief shows if the user's password is expired
328 * @param[in]: user name
329 * @return - true / false indicating user password expired
333 /** @brief returns user info
334 * Checks if user is local user, then returns map of properties of user.
335 * like user privilege, list of user groups, user enabled state and user
336 * locked state. If its not local user, then it checks if its a ldap user,
339 * @param[in] - user name
340 * @return - map of user properties
344 /** @brief get IPMI user count
345 * method to get IPMI user count
347 * @return - returns user count
423 /** @brief check for user presence
424 * method to check for user existence
426 * @param[in] userName - name of the user
427 * @return -true if user exists and false if not.
433 /** @brief check user exists
434 * method to check whether user exist, and throw if not.
436 * @param[in] userName - name of the user
440 /** @brief check user does not exist
443 * @param[in] userName - name of the user
447 /** @brief check user name constraints
448 * method to check user name constraints and throw if failed.
450 * @param[in] userName - name of the user
451 * @param[in] groupNames - user groups
457 /** @brief check group user count
458 * method to check max group user count, and throw if limit reached
469 /** @brief clear user's failure records
470 * method to clear user fail records and throw if failed.
472 * @param[in] userName - name of the user
494 * @param[in] priv - privilege of the user
501 * @param[in] groupNames - user groups
534 "priv-user"};
541 std::unordered_map<std::string, std::unique_ptr<phosphor::user::Users>>
545 * method to get group user list
553 /** @brief get user & SSH users list
556 *@return - vector of User & SSH user lists
560 /** @brief initialize the user manager objects
561 * method to initialize the user manager objects accordingly
575 /** @brief get primary group ID of specified user
582 /** @brief check whether if the user is a member of the group
585 * @param[in] - ID of the user's primary group
587 * @return - true if the user is a member of the group
596 * @return - map of user object
607 } // namespace user