Skip to content

Conversation

@tacerus
Copy link
Contributor

@tacerus tacerus commented Jan 20, 2026

What does this PR do?

This resolves not being able to manage operational attributes by introducing a way to pass the list to filter in the LDAP search through to the search function. Passing a customizable list was deemed most flexible, as one might not want to control all but only specific operational attributes. For example, one can set attrlist to ["*", "aci"] to manage all user attributes plus the "aci" operational attribute.

What issues does this PR fix or reference?

Fixes #53364.

Previous Behavior

No way of enabling additional attributes in the search, causing repeated changes to be reported (an apply of which then fails due to the attribute already existing).

New Behavior

Additional attributes can be selectively enabled.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

This resolves not being able to manage operational attributes by
introducing a way to pass the list to filter in the LDAP search through
to the search function. Passing a customizable list was deemed most
flexible, as one might not want to control all but only specific
operational attributes. For example, one can set attrlist to ["*",
"aci"] to manage all user attributes plus the "aci" operational
attribute.

Signed-off-by: Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
tacerus added a commit to tacerus/opensuse-salt-formulas that referenced this pull request Jan 21, 2026
This implements support for managing operational attributes by allowing
the attributes to search for when comparing data to be specified in the
pillar. Unfortunately this requires a change in ldap.managed - hence the
formula feature here will fall back to a no-op if an unpatched version of
Salt is in use to avoid unexpected failure.

The relevant patch was submitted as saltstack/salt#68650.

Signed-off-by: Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
tacerus added a commit to tacerus/opensuse-salt-formulas that referenced this pull request Jan 22, 2026
This implements support for managing operational attributes by allowing
the attributes to search for when comparing data to be specified in the
pillar. Unfortunately this requires a change in ldap.managed - hence the
formula feature here will fall back to a no-op if an unpatched version of
Salt is in use to avoid unexpected failure.

The relevant patch was submitted as saltstack/salt#68650.

Signed-off-by: Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
tacerus added a commit to tacerus/opensuse-salt-formulas that referenced this pull request Jan 22, 2026
This implements support for managing operational attributes by allowing
the attributes to search for when comparing data to be specified in the
pillar. Unfortunately this requires a change in ldap.managed - hence the
formula feature here will fall back to a no-op if an unpatched version of
Salt is in use to avoid unexpected failure.

The relevant patch was submitted as saltstack/salt#68650.

Signed-off-by: Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ldap.managed does not handle operational attributes

2 participants