summaryrefslogtreecommitdiffstats
path: root/user.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Basic support for User manager serviceRichard Marian Thomaiyar2018-09-031-107/+101
| | | | | | | | Basic support for User Manager service methods are implemented. Change-Id: Id42432ec6dd421b99971268add931dcd70876f7c Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* Fix to use mkstemp for temp shadow file creationRichard Marian Thomaiyar2018-01-191-2/+0
| | | | | | | | | Do not rely on randomString() for tempShadowFile, as it uses '/' in random set, and cause file creation error. Also, it's safe to use mkstemp to create temp shadow file with random name suffixing shadow file name. Change-Id: I0b80cc6d7c002e732e22f660e50b0701acac15fe Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* Add GTEST casesVishwanatha Subbanna2017-10-121-0/+4
| | | | | | | Fixes openbmc/openbmc#1714 Change-Id: I51964f16fc2ea733ee3b3ae822f72ac7b431189a Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Throw exceptions on password update failureVishwanatha Subbanna2017-10-121-0/+8
| | | | | Change-Id: I78112212b0f436c6d3b05cb1f16015c2d6bb5089 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Update shadow password file with new passwordVishwanatha Subbanna2017-10-121-1/+32
| | | | | Change-Id: Ida7c1aba6f17ac6f006f159d08e2638808f3a54c Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Extract crypto algorithm field and add utility functionsVishwanatha Subbanna2017-09-131-2/+35
| | | | | | | | | | | | | Password field of a user in /etc/shadow contains 3 parts: [Crypt algorithm, Salt, encrypted password] Example: A value of "1" in crypt algorithm maps to MD5 Need to use the same crypt algorithm that is already used before when the new password is to be updated. Change-Id: Ib7d8e0ad6f3bcce30f5c2be89b4e033230c07bf4 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Implement user password interfaceVishwanatha Subbanna2017-09-131-0/+62
provides a minimal implementation of Password.interface Change-Id: I3041b6425b76f931dbb8d7e4b7d192e98d70aa23 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud