1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-07 18:39:53 +00:00
community.general/plugins
Alexei Znamensky 645dd2d448
ldap_attrs: fix case-insensitive attribute lookup in state=exact (#11990)
* fix(ldap_attrs): case-insensitive attribute lookup in _get_all_values_of

LDAP attribute names are case-insensitive (RFC 4512), but the previous
code used a case-sensitive dict lookup on the server's response. When
the server returns an attribute with different casing than requested,
the lookup returns [] causing state=exact to issue MOD_ADD instead of
MOD_REPLACE, which fails on single-valued attributes that already have
a value.

Fixes #1624

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(changelogs): add fragment for ldap_attrs fix #11990

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 07:38:56 +12:00
..
action Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
become pfexec become plugin: fix broken defaults for illumos/SmartOS (#11623) 2026-04-25 21:12:36 +02:00
cache Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
callback selective callback plugin: route output through display to honour ANSIBLE_LOG_PATH (#11927) 2026-04-29 21:25:43 +02:00
connection saltstack connection plugin: add documentation (#11992) 2026-05-07 07:36:47 +12:00
doc_fragments Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00
filter Replace % string formatting with f-strings across multiple plugins (#11908) 2026-04-22 07:06:27 +12:00
inventory Fix nmap inventory plugin: skip setting reserved 'name' variable (#11893) 2026-04-25 21:07:19 +02:00
lookup onepassword: add support for secret references (#11958) 2026-05-03 22:35:15 +02:00
module_utils multiple module utils: flatten directories (#11974) 2026-05-06 07:07:51 +02:00
modules ldap_attrs: fix case-insensitive attribute lookup in state=exact (#11990) 2026-05-07 07:38:56 +12:00
plugin_utils Replace % string formatting with f-strings across multiple plugins (#11908) 2026-04-22 07:06:27 +12:00
test Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00