@@ -300,7 +300,7 @@ void UserMgr::createUser(std::string userName,
300
300
throwForInvalidPrivilege (priv);
301
301
throwForInvalidGroups (groupNames);
302
302
// All user management lock has to be based on /etc/shadow
303
- phosphor::user::shadow ::Lock lock{};
303
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
304
304
throwForUserExists (userName);
305
305
throwForUserNameConstraints (userName, groupNames);
306
306
throwForMaxGrpUserCount (groupNames);
@@ -346,7 +346,7 @@ void UserMgr::createUser(std::string userName,
346
346
void UserMgr::deleteUser (std::string userName)
347
347
{
348
348
// All user management lock has to be based on /etc/shadow
349
- phosphor::user::shadow ::Lock lock{};
349
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
350
350
throwForUserDoesNotExist (userName);
351
351
try
352
352
{
@@ -369,7 +369,7 @@ void UserMgr::deleteUser(std::string userName)
369
369
void UserMgr::renameUser (std::string userName, std::string newUserName)
370
370
{
371
371
// All user management lock has to be based on /etc/shadow
372
- phosphor::user::shadow ::Lock lock{};
372
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
373
373
throwForUserDoesNotExist (userName);
374
374
throwForUserExists (newUserName);
375
375
throwForUserNameConstraints (newUserName,
@@ -410,7 +410,7 @@ void UserMgr::updateGroupsAndPriv(const std::string& userName,
410
410
throwForInvalidPrivilege (priv);
411
411
throwForInvalidGroups (groupNames);
412
412
// All user management lock has to be based on /etc/shadow
413
- phosphor::user::shadow ::Lock lock{};
413
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
414
414
throwForUserDoesNotExist (userName);
415
415
const std::vector<std::string>& oldGroupNames =
416
416
usersList[userName].get ()->userGroups ();
@@ -645,7 +645,7 @@ int UserMgr::setPamModuleArgValue(const std::string& moduleName,
645
645
void UserMgr::userEnable (const std::string& userName, bool enabled)
646
646
{
647
647
// All user management lock has to be based on /etc/shadow
648
- phosphor::user::shadow ::Lock lock{};
648
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
649
649
throwForUserDoesNotExist (userName);
650
650
try
651
651
{
@@ -678,7 +678,7 @@ static constexpr size_t t2OutputIndex = 1;
678
678
bool UserMgr::userLockedForFailedAttempt (const std::string& userName)
679
679
{
680
680
// All user management lock has to be based on /etc/shadow
681
- phosphor::user::shadow ::Lock lock{};
681
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
682
682
std::vector<std::string> output;
683
683
684
684
output = executeCmd (" /usr/sbin/pam_tally2" , " -u" , userName.c_str ());
@@ -716,7 +716,7 @@ bool UserMgr::userLockedForFailedAttempt(const std::string& userName,
716
716
const bool & value)
717
717
{
718
718
// All user management lock has to be based on /etc/shadow
719
- phosphor::user::shadow ::Lock lock{};
719
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
720
720
std::vector<std::string> output;
721
721
if (value == true )
722
722
{
@@ -735,7 +735,7 @@ bool UserMgr::userLockedForFailedAttempt(const std::string& userName,
735
735
bool UserMgr::userPasswordExpired (const std::string& userName)
736
736
{
737
737
// All user management lock has to be based on /etc/shadow
738
- phosphor::user::shadow ::Lock lock{};
738
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
739
739
740
740
struct spwd spwd
741
741
{};
@@ -780,7 +780,7 @@ bool UserMgr::userPasswordExpired(const std::string& userName)
780
780
UserSSHLists UserMgr::getUserAndSshGrpList ()
781
781
{
782
782
// All user management lock has to be based on /etc/shadow
783
- phosphor::user::shadow ::Lock lock{};
783
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
784
784
785
785
std::vector<std::string> userList;
786
786
std::vector<std::string> sshUsersList;
@@ -838,7 +838,7 @@ size_t UserMgr::getIpmiUsersCount()
838
838
bool UserMgr::isUserEnabled (const std::string& userName)
839
839
{
840
840
// All user management lock has to be based on /etc/shadow
841
- phosphor::user::shadow ::Lock lock{};
841
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
842
842
std::array<char , 4096 > buffer{};
843
843
struct spwd spwd;
844
844
struct spwd * resultPtr = nullptr ;
@@ -1105,7 +1105,7 @@ UserInfoMap UserMgr::getUserInfo(std::string userName)
1105
1105
void UserMgr::initUserObjects (void )
1106
1106
{
1107
1107
// All user management lock has to be based on /etc/shadow
1108
- phosphor::user::shadow ::Lock lock{};
1108
+ // TODO phosphor-user-manager#10 phosphor::user::shadow::Lock lock{};
1109
1109
std::vector<std::string> userNameList;
1110
1110
std::vector<std::string> sshGrpUsersList;
1111
1111
UserSSHLists userSSHLists = getUserAndSshGrpList ();
0 commit comments