Skip to content

sudo: Include CIDR notation in host filter#8738

Draft
shridhargadekar wants to merge 1 commit into
SSSD:masterfrom
shridhargadekar:sudo-cidr-fix
Draft

sudo: Include CIDR notation in host filter#8738
shridhargadekar wants to merge 1 commit into
SSSD:masterfrom
shridhargadekar:sudo-cidr-fix

Conversation

@shridhargadekar

Copy link
Copy Markdown
Contributor

Include (sudoHost=/) in LDAP filter to retrieve rules with CIDR notation. Delegates network range matching to sudo, following the same pattern as netgroups and regexps.
Fixes: sudoHost with CIDR notation excluded from host filte

Include (sudoHost=*/*) in LDAP filter to retrieve rules with CIDR
notation. Delegates network range matching to sudo, following the
same pattern as netgroups and regexps.
Fixes: sudoHost with CIDR notation excluded from host filte

@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 LDAP sudo provider in src/providers/ldap/sdap_async_sudo.c to include a filter for sudoHost entries containing CIDR notation (matching */*). It also includes a safety check to handle potential memory allocation failures when appending this filter. There are no review comments, and I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant