Skip to content

sysdb: do not treat missing id-override as an error#8325

Merged
alexey-tikhonov merged 1 commit intoSSSD:masterfrom
sumit-bose:sysdb_search_user_by_upn_with_view_res_fix
Jan 6, 2026
Merged

sysdb: do not treat missing id-override as an error#8325
alexey-tikhonov merged 1 commit intoSSSD:masterfrom
sumit-bose:sysdb_search_user_by_upn_with_view_res_fix

Conversation

@sumit-bose
Copy link
Contributor

In sysdb_search_user_by_upn_with_view_res()
sysdb_add_overrides_to_object() can return ENOENT if there is no id-override for the given user. This is expected and should not be treated as an error.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly addresses the issue of treating a missing id-override as an error. The change in sysdb_search_user_by_upn_with_view_res ensures that an ENOENT return from sysdb_add_overrides_to_object is handled as a non-error case, which is the correct behavior when a user exists but has no overrides. The implementation is simple and effective. I have no further comments.

@alexey-tikhonov alexey-tikhonov added Trivial A single reviewer is sufficient to review the Pull Request no-backport This should go to target branch only. labels Jan 5, 2026
@alexey-tikhonov alexey-tikhonov self-assigned this Jan 5, 2026
In sysdb_search_user_by_upn_with_view_res()
sysdb_add_overrides_to_object() can return ENOENT if there is no
id-override for the given user. This is expected and should not be
treated as an error.

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
@sssd-bot
Copy link
Contributor

sssd-bot commented Jan 6, 2026

The pull request was accepted by @alexey-tikhonov with the following PR CI status:


🟢 CodeFactor (success)
🟢 CodeQL (success)
🟢 osh-diff-scan:fedora-rawhide-x86_64:upstream (success)
🟢 rpm-build:centos-stream-10-x86_64:upstream (success)
🟢 rpm-build:fedora-42-x86_64:upstream (success)
🟢 rpm-build:fedora-43-x86_64:upstream (success)
🟢 rpm-build:fedora-rawhide-x86_64:upstream (success)
🟢 Analyze (target) / cppcheck (success)
🟢 Build / freebsd (success)
🟢 Build / make-distcheck (success)
🟢 ci / intgcheck (centos-10) (success)
🟢 ci / intgcheck (fedora-42) (success)
🟢 ci / intgcheck (fedora-43) (success)
🟢 ci / intgcheck (fedora-44) (success)
🟢 ci / prepare (success)
🟢 ci / system (centos-10) (success)
🟢 ci / system (fedora-42) (success)
🟢 ci / system (fedora-43) (success)
🔴 ci / system (fedora-44) (failure)
➖ Coverity scan / coverity (skipped)
🟢 Static code analysis / codeql (success)
🟢 Static code analysis / pre-commit (success)
🟢 Static code analysis / python-system-tests (success)


There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging.

@sssd-bot sssd-bot force-pushed the sysdb_search_user_by_upn_with_view_res_fix branch from d56d56d to d53a4e4 Compare January 6, 2026 08:12
@alexey-tikhonov alexey-tikhonov merged commit 72a42d5 into SSSD:master Jan 6, 2026
11 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Accepted no-backport This should go to target branch only. Trivial A single reviewer is sufficient to review the Pull Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants