Skip to content

New SSS_NSS_GETORIGBYUSERNAME_WITH_GROUPS 'sss_client' command#8800

Draft
alexey-tikhonov wants to merge 6 commits into
SSSD:masterfrom
alexey-tikhonov:SSS_NSS_GETORIGBYUSERNAME-ext
Draft

New SSS_NSS_GETORIGBYUSERNAME_WITH_GROUPS 'sss_client' command#8800
alexey-tikhonov wants to merge 6 commits into
SSSD:masterfrom
alexey-tikhonov:SSS_NSS_GETORIGBYUSERNAME-ext

Conversation

@alexey-tikhonov

@alexey-tikhonov alexey-tikhonov commented Jun 10, 2026

Copy link
Copy Markdown
Member

New NSS responder command similar to getorigbyusername() but additionally
returns group membership names as key-value pairs in the response.

The IPA extdom plugin currently resolves user group memberships via N+2
NSS round-trips: getorigbyusername (1), getgrouplist (1), then getgrgid
per GID (N). New command returns "groupMembership" kv pairs with
fully qualified group names directly in the 'getorigbyusername_with_groups'
response, allowing to reduce the interaction to a single call.

New command handler uses a two-phase flow:

  1. CACHE_REQ_USER_BY_NAME to fetch user attributes
  2. CACHE_REQ_INITGROUPS to ensure group cache freshness

The fill function then reads groups from sysdb and appends them using
the shared nss_protocol_resolve_initgr_group() helper.

@alexey-tikhonov alexey-tikhonov added the no-backport This should go to target branch only. label Jun 10, 2026
gemini-code-assist[bot]

This comment was marked as outdated.

@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch 2 times, most recently from a8f2f1a to 6b320ed Compare June 10, 2026 15:46
@alexey-tikhonov alexey-tikhonov changed the title Extend SSS_NSS_GETORIGBYUSERNAME response to include group membership (group names) New SSS_NSS_GETORIGBYUSERNAME_WITH_GROUPS 'sss_client' command Jun 10, 2026
@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch from 6b320ed to de1be54 Compare June 10, 2026 15:51
sssd-bot

This comment was marked as outdated.

@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 10, 2026
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 10, 2026
@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch 2 times, most recently from dce3be9 to 26576dc Compare June 10, 2026 17:24
gemini-code-assist[bot]

This comment was marked as outdated.

Helper to be used in a following patch.
@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch 2 times, most recently from b022c5b to d802114 Compare June 11, 2026 18:06
@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch from d802114 to 21245a6 Compare June 11, 2026 18:47
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 11, 2026
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 11, 2026
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 11, 2026
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 11, 2026
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 11, 2026
@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch from 21245a6 to c3ed275 Compare June 11, 2026 19:04
gemini-code-assist[bot]

This comment was marked as outdated.

@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch from c3ed275 to d5f9d7c Compare June 11, 2026 19:12
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 11, 2026
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 11, 2026
@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch from d5f9d7c to 6e9b5cf Compare June 11, 2026 19:21
gemini-code-assist[bot]

This comment was marked as outdated.

@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch from 6e9b5cf to ae485f3 Compare June 12, 2026 08:30
@alexey-tikhonov

Copy link
Copy Markdown
Member Author

/gemini review

@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 12, 2026
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 12, 2026
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 12, 2026
gemini-code-assist[bot]

This comment was marked as outdated.

@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 12, 2026
@SSSD SSSD deleted a comment from gemini-code-assist Bot Jun 12, 2026
@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch from ae485f3 to ffed5fa Compare June 12, 2026 09:46
New NSS responder command similar to `getorigbyusername()` but additionally
returns group membership names as key-value pairs in the response.

The IPA extdom plugin currently resolves user group memberships via N+2
NSS round-trips: getorigbyusername (1), getgrouplist (1), then getgrgid
per GID (N). New command returns "groupMembership" kv pairs with
fully qualified group names directly in the 'getorigbyusername_with_groups'
response, allowing to reduce the interaction to a single call.

New command handler uses a two-phase flow:
1. CACHE_REQ_USER_BY_NAME to fetch user attributes
2. CACHE_REQ_INITGROUPS to ensure group cache freshness

The fill function then reads groups from sysdb and appends them using
the shared `nss_protocol_resolve_initgr_group()` helper.

Assisted-By: Claude Code (Opus 4.6)

Resolves: SSSD#3835
@alexey-tikhonov alexey-tikhonov force-pushed the SSS_NSS_GETORIGBYUSERNAME-ext branch from ffed5fa to 5298419 Compare June 12, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-backport This should go to target branch only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants