commit | ac5b6562dc8a05277dc0a21ce88cba3963712ba1 | [log] [tgz] |
---|---|---|
author | raviteja-b <raviteja28031990@gmail.com> | Fri Mar 01 01:33:42 2019 -0600 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Fri Mar 08 21:42:05 2019 +0000 |
tree | ec5d6f6066b480808ca6a409315b2c1b11dc750d | |
parent | c3b1900e9754b410456e3b8d94a1026cd467f01c [diff] |
Adding dbus method for GetUserInfo under User Manager As local and remote users are managed by separate daemon,it is difficult for application to query and get the user authorization. In order to simplify it in application level, a one stop D-Bus API method was proposed which will be used by all applications (irrespective of local / remote user) except IPMI. This simplifies the application side. Same is documented in https://github.com/openbmc/docs/blob/master/user_management.md#authorization-flow-except-ipmi this method returns a dictionary of user properties. UserPrivilege -> privilege of the user UserGroups -> list of groups this user belongs to UserEnabled -> user enabled state UserLockedForFailedAttempt -> user locked state RemoteUser -> remote or local user this commit has GetUserInfo dbus api implementation https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-user-manager/+/18132/ Change-Id: Idbf933447dcf98623cf1f29606d24ea69ec44971 Signed-off-by: raviteja-b <raviteja28031990@gmail.com>