Skip to content

sdap: Reduce log level when get_naming_context() fails#8697

Merged
alexey-tikhonov merged 1 commit into
SSSD:masterfrom
scabrero:scabrero-nc-log-lvl
May 11, 2026
Merged

sdap: Reduce log level when get_naming_context() fails#8697
alexey-tikhonov merged 1 commit into
SSSD:masterfrom
scabrero:scabrero-nc-log-lvl

Conversation

@scabrero

Copy link
Copy Markdown
Contributor

When a plain LDAP server hosts multiple naming contexts but there is no defaultNamingContext in the rootdse, the following message is logged periodically:

[be[LDAP]] [sdap_set_config_options_with_rootdse] (0x0020): get_naming_context failed.

The message is logged at SSSDBG_CRIT_FAILURE level, which seems too high for a non-fatal failure:

        if (sdom->naming_context == NULL) {
            DEBUG(SSSDBG_CRIT_FAILURE, "get_naming_context failed.\n");

            /* This has to be non-fatal, since some servers offer
             * multiple namingContexts entries. We will just
             * add NULL checks for the search bases in the lookups.
             */
            ret = EOK;
            goto done;
        }

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

Copy link
Copy Markdown

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 updates the logging level in src/providers/ldap/sdap.c from SSSDBG_CRIT_FAILURE to SSSDBG_MINOR_FAILURE when get_naming_context fails. This change correctly reflects that the failure is non-fatal, as indicated by the existing code comments. There were no review comments provided for this pull request, so I have no additional feedback to offer.

Signed-off-by: Samuel Cabrero <[email protected]>
Reviewed-by: Alexey Tikhonov <[email protected]>
Reviewed-by: Justin Stephenson <[email protected]>
@sssd-bot

Copy link
Copy Markdown
Contributor

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


🟢 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-44-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 / intgcheck (fedora-45) (success)
🟢 ci / prepare (success)
🔴 ci / system (centos-10) (failure)
🟢 ci / system (fedora-42) (success)
🟢 ci / system (fedora-43) (success)
🔴 ci / system (fedora-44) (failure)
🔴 ci / system (fedora-45) (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 scabrero-nc-log-lvl branch from 7227464 to c8dbd8b Compare May 11, 2026 19:25
@alexey-tikhonov
alexey-tikhonov merged commit edf4a0f into SSSD:master May 11, 2026
2 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants