| /openbmc/phosphor-host-ipmid/user_channel/ |
| H A D | user_layer.cpp | 36 SecureString ipmiUserGetPassword(const std::string& userName) in ipmiUserGetPassword() argument 38 return passwdMgr.getPasswdByUserName(userName); in ipmiUserGetPassword() 41 Cc ipmiClearUserEntryPassword(const std::string& userName) in ipmiClearUserEntryPassword() argument 43 if (passwdMgr.updateUserEntry(userName, "") != 0) in ipmiClearUserEntryPassword() 50 Cc ipmiRenameUserEntryPassword(const std::string& userName, in ipmiRenameUserEntryPassword() argument 53 if (passwdMgr.updateUserEntry(userName, newUserName) != 0) in ipmiRenameUserEntryPassword() 70 uint8_t ipmiUserGetUserId(const std::string& userName) in ipmiUserGetUserId() argument 72 return getUserAccessObject().getUserId(userName); in ipmiUserGetUserId() 75 Cc ipmiUserSetUserName(const uint8_t userId, const char* userName) in ipmiUserSetUserName() argument 77 size_t len = strnlen(userName, ipmiMaxUserName); in ipmiUserSetUserName() [all …]
|
| H A D | user_mgmt.cpp | 93 int getUserNameFromPath(const std::string& path, std::string& userName) in getUserNameFromPath() argument 96 userName.assign(objPath.filename()); in getUserNameFromPath() 101 const std::string& userName, const std::string& priv, in userUpdateHelper() argument 107 if (usrAccess.addUserEntry(userName, priv, enabled) == false) in userUpdateHelper() 119 safeUsernameString(userData->user[usrIndex].userName); in userUpdateHelper() 120 if (userName == curName) in userUpdateHelper() 129 "USER_NAME", userName, "USER_EVENT", userEvent); in userUpdateHelper() 164 userData->user[usrIndex].userName, in userUpdateHelper() 165 sizeof(userData->user[usrIndex].userName), newUserName); in userUpdateHelper() 166 ipmiRenameUserEntryPassword(userName, newUserName); in userUpdateHelper() [all …]
|
| H A D | user_layer.hpp | 93 SecureString ipmiUserGetPassword(const std::string& userName); 102 Cc ipmiClearUserEntryPassword(const std::string& userName); 112 Cc ipmiRenameUserEntryPassword(const std::string& userName, 137 uint8_t ipmiUserGetUserId(const std::string& userName); 142 Cc ipmiUserSetUserName(const uint8_t userId, const char* userName) 152 Cc ipmiUserSetUserName(const uint8_t userId, const std::string& userName); 170 Cc ipmiSetSpecialUserPassword(const std::string& userName, 180 Cc ipmiUserGetUserName(const uint8_t userId, std::string& userName); 243 bool ipmiUserPamAuthenticate(std::string_view userName,
|
| H A D | passwd_mgr.hpp | 50 SecureString getPasswdByUserName(const std::string& userName); 61 int updateUserEntry(const std::string& userName, 102 int updatePasswdSpecialFile(const std::string& userName,
|
| H A D | user_mgmt.hpp | 159 uint8_t userName[ipmiMaxUserName]; member 254 bool isValidUserName(const std::string& userName); 269 uint8_t getUserId(const std::string& userName); 294 Cc getUserName(const uint8_t userId, std::string& userName); 303 Cc setUserName(const uint8_t userId, const std::string& userName); 330 Cc setSpecialUserPassword(const std::string& userName, 446 bool addUserEntry(const std::string& userName, const std::string& priv,
|
| H A D | usercommands.cpp | 260 std::string userName; in ipmiGetUserName() local 261 if (ipmiUserGetUserName(userId, userName) != ccSuccess) in ipmiGetUserName() 268 if (userName.size() > ipmi::ipmiMaxUserName) in ipmiGetUserName() 274 std::copy(userName.begin(), userName.end(), userNameFixed.begin()); in ipmiGetUserName() 314 std::string userName; in ipmiSetUserPassword() local 315 if (ipmiUserGetUserName(userId, userName) != ccSuccess) in ipmiSetUserPassword() 338 SecureString password = ipmiUserGetPassword(userName); in ipmiSetUserPassword()
|
| H A D | passwd_mgr.cpp | 95 SecureString PasswdMgr::getPasswdByUserName(const std::string& userName) in getPasswdByUserName() argument 98 auto iter = passwdMapList.find(userName); in getPasswdByUserName() 106 int PasswdMgr::updateUserEntry(const std::string& userName, in updateUserEntry() argument 115 if (passwdMapList.find(userName) == passwdMapList.end()) in updateUserEntry() 123 if (updatePasswdSpecialFile(userName, newUserName) != 0) in updateUserEntry() 363 int PasswdMgr::updatePasswdSpecialFile(const std::string& userName, in updatePasswdSpecialFile() argument 401 if (userName.compare(lineStr.substr(0, userEPos)) == 0) in updatePasswdSpecialFile()
|
| /openbmc/phosphor-user-manager/ |
| H A D | user_mgr.cpp | 201 bool UserMgr::isUserExist(const std::string& userName) in isUserExist() argument 203 if (userName.empty()) in isUserExist() 209 if (usersList.find(userName) == usersList.end()) in isUserExist() 216 void UserMgr::throwForUserDoesNotExist(const std::string& userName) in throwForUserDoesNotExist() argument 218 if (!isUserExist(userName)) in throwForUserDoesNotExist() 220 lg2::error("User '{USERNAME}' does not exist", "USERNAME", userName); in throwForUserDoesNotExist() 239 void UserMgr::throwForUserExists(const std::string& userName) in throwForUserExists() argument 241 if (isUserExist(userName)) in throwForUserExists() 243 lg2::error("User '{USERNAME}' already exists", "USERNAME", userName); in throwForUserExists() 249 const std::string& userName, const std::vector<std::string>& groupNames) in throwForUserNameConstraints() argument [all …]
|
| H A D | user_mgr.hpp | 229 void createUser(std::string userName, std::vector<std::string> groupNames, 238 void renameUser(std::string userName, std::string newUserName) override; 245 void deleteUser(std::string userName); 254 void updateGroupsAndPriv(const std::string& userName, 264 void userEnable(const std::string& userName, bool enabled); 272 virtual bool isUserEnabled(const std::string& userName); 316 virtual bool userLockedForFailedAttempt(const std::string& userName); 323 bool userLockedForFailedAttempt(const std::string& userName, 331 virtual bool userPasswordExpired(const std::string& userName); 342 UserInfoMap getUserInfo(std::string userName) override; [all …]
|
| H A D | users.cpp | 74 userName(sdbusplus::message::object_path(path).filename()), manager(parent) in Users() 84 manager.getSerializer().erase(userName); in ~Users() 92 manager.deleteUser(userName); in delete_() 105 manager.updateGroupsAndPriv(userName, UsersIface::userGroups(), value); in userPrivilege() 138 manager.updateGroupsAndPriv(userName, value, UsersIface::userPrivilege()); in userGroups() 155 return manager.isUserEnabled(userName); in userEnabled() 173 manager.userEnable(userName, value); in userEnabled() 182 return manager.userLockedForFailedAttempt(userName); in userLockedForFailedAttempt() 197 return manager.userLockedForFailedAttempt(userName, value); in userLockedForFailedAttempt() 206 return manager.userPasswordExpired(userName); in userPasswordExpired() [all …]
|
| H A D | users.hpp | 136 return userName; in getUserName() 150 std::string userName; member in phosphor::user::Users
|
| /openbmc/phosphor-user-manager/test/ |
| H A D | mock_user_mgr.hpp | 18 MOCK_METHOD1(userLockedForFailedAttempt, bool(const std::string& userName)); 19 MOCK_METHOD1(userPasswordExpired, bool(const std::string& userName)); 20 MOCK_METHOD1(isUserEnabled, bool(const std::string& userName)); 21 MOCK_CONST_METHOD1(getPrimaryGroup, gid_t(const std::string& userName)); 23 bool(const std::string& userName, gid_t primaryGid,
|
| H A D | user_mgr_test.cpp | 42 void createLocalUser(const std::string& userName, in createLocalUser() argument 47 tempObjPath /= userName; in createLocalUser() 60 userName, std::make_unique<phosphor::user::Users>( in createLocalUser() 108 std::string userName = "user"; in TEST_F() local 111 EXPECT_CALL(mockManager, getPrimaryGroup(userName)) in TEST_F() 113 EXPECT_THROW(userInfo = mockManager.getUserInfo(userName), in TEST_F() 120 std::string userName = "testUser"; in TEST_F() local 124 createLocalUser(userName, groups, privilege, true); in TEST_F() 125 EXPECT_CALL(mockManager, userLockedForFailedAttempt(userName)).Times(1); in TEST_F() 126 userInfo = mockManager.getUserInfo(userName); in TEST_F() [all …]
|
| /openbmc/phosphor-net-ipmid/command/ |
| H A D | rakp12.cpp | 92 session->userName.assign(request->user_name, request->user_name_len); in RAKP12() 119 sizeof(request->user_name_len) + session->userName.size()); in RAKP12() 180 std::string userName(request->user_name, request->user_name_len); in RAKP12() local 182 uint8_t userId = ipmi::ipmiUserGetUserId(userName); in RAKP12() 201 passwd = ipmi::ipmiUserGetPassword(userName); in RAKP12() 211 if (!ipmi::ipmiUserPamAuthenticate(userName, passwd)) in RAKP12() 310 std::copy_n(session->userName.data(), session->userName.size(), iter); in RAKP12()
|
| H A D | rakp34.cpp | 126 auto userLength = static_cast<uint8_t>(session->userName.size()); in RAKP34() 154 std::copy_n(session->userName.data(), userLength, iter); in RAKP34() 211 std::copy_n(session->userName.data(), userLength, iter); in RAKP34()
|
| H A D | payload_cmds.cpp | 73 auto userId = ipmi::ipmiUserGetUserId(session->userName); in activatePayload() 163 if (currentSession->userName != solActiveSession->userName && in deactivatePayload()
|
| /openbmc/bios-settings-mgr/src/ |
| H A D | password.cpp | 142 void Password::verifyPassword(std::string userName, std::string currentPassword, in verifyPassword() argument 165 if (userName == "AdminPassword") in verifyPassword() 197 void Password::changePassword(std::string userName, std::string currentPassword, in changePassword() argument 201 verifyPassword(userName, currentPassword, newPassword); in changePassword()
|
| /openbmc/bmcweb/redfish-core/lib/ |
| H A D | virtual_media.hpp | 440 std::optional<std::string> userName; member 456 std::string&& userName, std::string&& password) in doMountVmLegacy() argument 458 if (userName.contains('\0')) in doMountVmLegacy() 461 asyncResp->res, userName, "Username", "VirtualMedia.InsertMedia"); in doMountVmLegacy() 465 if (userName.size() > limit) in doMountVmLegacy() 467 messages::stringValueTooLong(asyncResp->res, userName, limit); in doMountVmLegacy() 489 std::move(userName), std::move(password), in doMountVmLegacy() 646 if (!actionParams.userName) in validateParams() 648 actionParams.userName = ""; in validateParams() 658 std::move(*actionParams.userName), in validateParams() [all …]
|
| H A D | account_service.hpp | 968 std::optional<std::string> userName; member 1022 if (!input.userName && !input.password && !input.serviceAddressList && in handleLDAPPatch() 1055 if (input.userName) in handleLDAPPatch() 1057 handleUserNamePatch(*input.userName, asyncResp, serverT, in handleLDAPPatch() 1583 activeDirectoryObject.userName, // in handleAccountServicePatch() 1599 "LDAP/Authentication/Username", ldapObject.userName, // in handleAccountServicePatch()
|
| /openbmc/bios-settings-mgr/include/ |
| H A D | password.hpp | 73 void changePassword(std::string userName, std::string currentPassword, 77 void verifyPassword(std::string userName, std::string currentPassword,
|
| /openbmc/phosphor-webui/app/access-control/controllers/ |
| H A D | ldap-controller.js | 42 const userName = getUsername(data); 57 'Username': userName,
|
| /openbmc/phosphor-net-ipmid/ |
| H A D | session.hpp | 289 std::string userName{}; // User Name member in session::Session
|
| H A D | command_table.cpp | 73 ipmi::ipmiUserGetUserId(session->userName)))}, in executeCommand()
|
| /openbmc/openbmc-test-automation/redfish/account_service/ |
| H A D | test_user_account.robot | 699 Redfish.Delete /redfish/v1/AccountService/Accounts/${userName} 845 Redfish.Delete /redfish/v1/AccountService/Accounts/${userName} 1032 Redfish.Delete /redfish/v1/AccountService/Accounts/${userName}
|
| /openbmc/intel-ipmi-oem/src/ |
| H A D | oemcommands.cpp | 1266 std::array<uint8_t, ipmi::ipmiMaxUserName>& userName, in ipmiOEMSetUser2Activation() argument 1343 size_t nameLen = strnlen(reinterpret_cast<const char*>(userName.data()), in ipmiOEMSetUser2Activation() 1344 sizeof(userName)); in ipmiOEMSetUser2Activation() 1346 reinterpret_cast<const char*>(userName.data()), nameLen); in ipmiOEMSetUser2Activation()
|