Mapping LDAP group to user roles
Thomaiyar, Richard Marian
richard.marian.thomaiyar at linux.intel.com
Wed Aug 29 01:42:41 AEST 2018
Ed / Brad / Tom / Ratan,
1. REDFISH can't manage LDAP user accounts. i.e. It will be beyond the
scope of REDFISH and won't list any LDAP user accounts (REDFISH can
implement LDAP privilege mapping configuration though) --> Agree?
2. Authentication must happen only using pam_authenticate (For security
purpose), and for authorization can use
a). getgrnam_r to get the group & privilege
b). use D-Bus API get property to get the group &
privilege role of the user
c). Maintain 1:1 mapping with application through
signal handler to do user sync, which can be used directly (IPMI Code
under review does this logic).
Problem with option #a is it requires individual way to map group &
privilege, hence it was not recommended, and suggestion was to use #b or
#c. But with ldap user accounts #b & #c can't be used as there is no
local user object and hence thinking about introducing a generic D-Bus
API (under Manager) to return user Info say GetUserInfo --> which
accepts user name as argument, and returns back groups & privilege of
the user (irrespective of whether the user is local / ldap), in this way
applications doesn't need to use different flow to query ldap / local
user account information and can use one single flow?
Note: This method must be implemented, so that it can internally use the
LDAP privilege mapper config to determine the privilege that has to be
applied to user, and can pass supported groups as ssh, redfish & web (or
can implement ldapGroupMapper too if needed).
Any thoughts about this flow?
Regards,
Richard
On 8/28/2018 8:25 PM, Tom Joseph wrote:
>
> On Thursday 23 August 2018 09:59 PM, Tanous, Ed wrote:
>>>> It would be great if you could document your proposal as a patch to
>>>> the
>>> existing user management document here:
>>>> https://github.com/openbmc/docs/blob/master/user_management.md
>>> https://gerrit.openbmc-project.xyz/#/c/openbmc/docs/+/12091/
>> This is a great start, but a lot of detail seems to be missing. You
>> don't mention anything of the two user roles you mentioned in your
>> original email. Has that changed? I don't see any mention of the
>> dbus interface, has that changed? I don't see that you've modified
>> any of the login flows in the document, but the LDAP section talks
>> about authorizing users via DBus, which certainly should include
>> changes to the flow diagrams.
> Thanks Ed for the feedback. The D-Bus interface is updated to support
> all the privilege roles supported by OpenBMC. The document ha sonly
> the user creation flows. Richard mentioned he has the login flows
> updated in the downstream and he will upstream it. So I will update
> the authorization flow on top of that.
>
> Documentation:
> https://gerrit.openbmc-project.xyz/#/c/openbmc/docs/+/12091/
>
> D-Bus Interface:
> https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-dbus-interfaces/+/12027/
>
>> It would be great if you could take another pass at this, and see if
>> you could add a little more detail to your proposal.
>>
>> Thanks,
>>
>> -Ed
>
More information about the openbmc
mailing list