After migrating 389-dirsrv database (BDB->LMDB) and upgrading from Fedora 41->42 I noticed a new error message in various ipa commands (ipa-healthcheck, ipa server-cert-fix, ...).
ipa
ipa-healthcheck
ipa server-cert-fix
Error message Unable to find server cert nickname in /etc/dirsrv/slapd-my-instance/dse.ldif in output
Unable to find server cert nickname in /etc/dirsrv/slapd-my-instance/dse.ldif
Since the entry is present, no error should occur.
$ rpm -q freeipa-server freeipa-client ipa-server ipa-client 389-ds-base pki-ca krb5-server freeipa-server-4.12.2-14.fc42.x86_64 freeipa-client-4.12.2-14.fc42.x86_64 package ipa-server is not installed package ipa-client is not installed 389-ds-base-3.1.3-2.fc42.x86_64 package pki-ca is not installed krb5-server-1.21.3-6.fc42.x86_64
In dse.ldif I can see
dse.ldif
dn: cn=rsa,cn=encryption,cn=config cn: RSA createTimestamp: 20170812014705Z creatorsName: cn=directory manager modifiersName: cn=directory manager modifyTimestamp: 20170812014705Z nsSSLActivation: on nsSSLPersonalitySSL: Server-Cert nsSSLToken: internal (software) objectClass: top objectClass: nsEncryptionModule
However, parser.parse_results().keys() appears to be empty. This is because the case changed and the entries_dn filter in "GetEntryFromLDIF" is wrong. However LDAP is not case sensitive, so any case should be supported, and therefore this is a bug. Probably all keys should be converted to lower case as should all lookups to preserve case insensitivity.
parser.parse_results().keys()
Metadata Update from @abbra: - Issue assigned to abbra
PR: https://github.com/freeipa/freeipa/pull/7931
@jfalke thank you for the report and analysis! I submitted a pull request that turns our LDIF parser to use case-preserving but case-insensitive dictionary we already have in IPA.
master:
ipa-4-12:
Metadata Update from @sumenon: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Metadata Update from @frenaud: - Custom field rhbz adjusted to https://issues.redhat.com/browse/RHEL-153624, https://issues.redhat.com/browse/RHEL-153621