freeipa / ansible-freeipa

Ansible roles and modules for FreeIPA
GNU General Public License v3.0
501 stars 232 forks source link

Case insensitive fields causing idempotence errors. #743

Open rjeffman opened 2 years ago

rjeffman commented 2 years ago

In IPA, the fields relating to user, group, host, hostgroups, and services are compared in a case insensitive manner.

Some modules don't reflect this behavior and do case sensitive comparison, like ipagroup and ipadelegation.

A complete review of the fields comparison should be done.

Known modules with case sensitive idempotence issues:

saurla commented 1 year ago

I have also problems with the ipahostgroup module related to capital letters. I have few hosts with hostnames which include capital letters. When this hostname is given as host paramater then the module fails if the host already exists in the group.

The module fails with following error message:

hostgroup_add_member: host hostNameWithCapitalLetters: This entry is already a member