Ticket #1559 (closed enhancement: fixed)

Opened 19 months ago

Last modified 11 months ago

[RFE] Use the getpwnam()/getgrnam() interface as a gateway to resolve SID to Names

Reported by: simo Owned by: sbose
Priority: critical Milestone: SSSD 1.10 beta
Component: SSSD Version: 1.9.0
Keywords: Cc:
Blocked By: Blocking:
Tests Updated: no Coverity Bug:
Patch Submitted: no Red Hat Bugzilla: 887035
Design link: https://fedorahosted.org/sssd/wiki/DesignDocs/NSSResponderIDMappingCalls
Feature Milestone:
Design review: no Fedora test page:
Chosen: Want Candidate to push out: no
Release Notes: IPA Web UI is able to display real names not only SIDs.

Description

It would be useful if we culd expose SID->Name resolution as a special case through the getpwnam()/getpwgroup() interfaces, by simply passing in a SID a string.

This will allow a number of components to do SID->Name resolution cheaply using a well-known existing interface and keep the cache in a single place within SSSD. The FreeIPA server could also benefit from this approach and defer to SSSD for SID->Name resolution.

I do not see a simple way to do Name->SID resolution through nsswitch interfaces, but that operation is less common and we can deal with it separately if needed.

Change History

comment:1 Changed 19 months ago by dpal

  • Milestone changed from NEEDS_TRIAGE to SSSD 1.10 beta
  • Red Hat Bugzilla set to 0
  • Summary changed from Use the getpwnam()/getgrnam() interface as a gateway to resolve SID to Names to [RFE] Use the getpwnam()/getgrnam() interface as a gateway to resolve SID to Names

comment:2 Changed 19 months ago by dpal

  • Priority changed from major to critical

comment:3 Changed 18 months ago by simo

  • Status changed from new to assigned
  • Owner changed from somebody to simo

comment:4 Changed 16 months ago by dpal

  • Design review unset
  • Chosen set to Want

comment:5 Changed 14 months ago by jhrozek

  • Status changed from assigned to new
  • Owner changed from simo to sbose

comment:6 Changed 13 months ago by dpal

  • Candidate to push out unset

comment:8 Changed 12 months ago by jhrozek

  • Resolution set to fixed
  • Status changed from new to closed

comment:9 Changed 11 months ago by dpal

  • Red Hat Bugzilla changed from 0 to [https://bugzilla.redhat.com/show_bug.cgi?id=887035 887035]

comment:10 Changed 11 months ago by mkosek

  • Design link set to N/A ((not visible to end user at the moment)
  • Release Notes modified (diff)

comment:11 Changed 11 months ago by mkosek

  • Design link changed from N/A ((not visible to end user at the moment) to N/A (not visible to end user at the moment)

comment:12 Changed 11 months ago by mkosek

  • Design link changed from N/A (not visible to end user at the moment) to https://fedorahosted.org/sssd/wiki/DesignDocs/NSSResponderIDMappingCalls
Note: See TracTickets for help on using tickets.