Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
In FIPS mode for RHEL9.2 kinit is failing after ipa-server install.
Version-Release number of selected component (if applicable):
ipa-server-4.10.1-3.el9.x86_64
krb5-server-1.20.1-3.el9.x86_64
How reproducible:
Always
Steps to Reproduce:
1. install ipa-server
2. kinit admin
Actual results:
ipa: ERROR: stderr: kinit: Pre-authentication failed: Invalid argument while getting initial credentials
Expected results:
kinit admin should be successful.
Additional info:
with ipa-server-4.10.1-2.el9.x86_64 kinit is working.
Comment 2Florence Blanc-Renaud
2023-01-30 12:39:32 UTC
According to the logs, ipa-server-install reports an error when setting the admin password:
2023-01-30T10:55:35Z DEBUG Changing admin password
2023-01-30T10:55:35Z DEBUG Starting external process
2023-01-30T10:55:35Z DEBUG args=['/usr/bin/ldappasswd', '-H', 'ldap://master.testrelm.test', '-ZZ', '-x', '-D', 'cn=Directory Manager', '-y', '/var/lib/ipa/tmp413vx9po', '-T', '/var/lib/ipa/tmpz45rm7l1', 'uid=admin,cn=users,cn=accounts,dc=testrelm,dc=test']
2023-01-30T10:55:35Z DEBUG Process finished, return code=1
2023-01-30T10:55:35Z DEBUG stdout=Result: Operations error (1)
Additional info: Failed to update password
2023-01-30T10:55:35Z DEBUG stderr=
2023-01-30T10:55:35Z DEBUG Unable to set admin password CalledProcessError(Command ['/usr/bin/ldappasswd', '-H', 'ldap://master.testrelm.test', '-ZZ', '-x', '-D', 'cn=Directory Manager', '-y', '/var/lib/ipa/tmp413vx9po', '-T', '/var/lib/ipa/tmpz45rm7l1', 'uid=admin,cn=users,cn=accounts,dc=testrelm,dc=test'] returned non-zero exit status 1: '')
but ipa-server-install exits successfully anyway.
389 ds error log displays an error generating the kerberos key:
[30/Jan/2023:05:55:35.529246066 -0500] - ERR - ipapwd_encrypt_encode_key - [file encoding.c, line 179]: generating kerberos keys failed [Cryptosystem internal error]
[30/Jan/2023:05:55:35.537081450 -0500] - ERR - ipapwd_gen_hashes - [file encoding.c, line 234]: key encryption/encoding failed
This code is part of ipa kdb driver, need to investigate which encryption is tried and check if it is supported in FIPS mode.