D26977: Fix setting of initial passwords for new users

David Edmundson noreply at phabricator.kde.org
Wed Jan 29 00:07:13 GMT 2020


davidedmundson created this revision.
davidedmundson added a reviewer: Plasma.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
davidedmundson requested review of this revision.

REVISION SUMMARY
  This is somewhat a simple fix for 5.18.0, but this really needs
  revisiting.
  
  The probelm is that newUserSetData is called N times for various
  properties. From the POV of this method, there is no way to no we're on
  teh last property. It simply checks for username and realname.
  
  However, the order the N properties are inserted is effectively
  undefined.
  
  The two things together don't work.
  
  This patch also blocks for the password.
  Ideally it needs to be setData, setData, setData, then some new flush
  method.
  
  There's a technical regression that you can no longer create a user account
  with no password, but that's arguably a feature.
  
  CCBUG: 416801

TEST PLAN
  Created a new user
  Looked in /etc/shadow

REPOSITORY
  R128 User Manager

BRANCH
  Plasma/5.18

REVISION DETAIL
  https://phabricator.kde.org/D26977

AFFECTED FILES
  src/lib/accountmodel.cpp

To: davidedmundson, #plasma
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200129/e3ec90ef/attachment.html>


More information about the Plasma-devel mailing list