Bug 1553594
Summary: | ldappasswd cause the IPA embedded Directory server to SIGSEGV | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ming Davies <minyu> |
Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.4 | CC: | frenaud, ipa-maint, myusuf, ndehadra, nkinder, pasik, pvoborni, rcritten, rmeggins, sumenon, tscherf |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ipa-4.6.4-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-10-30 10:57:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ming Davies
2018-03-09 07:15:42 UTC
I'm not sure this a DS problem as it's crashing in an IPA plugin when checking the str length of a NULL pointer: daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c 592 if (pwdata.changetype == IPA_CHANGETYPE_NORMAL) { 593 principal = slapi_entry_attr_get_charptr(pwdata.target, 594 "krbPrincipalName"); 595 } else { 596 principal = slapi_ch_smprintf("root/admin@%s", krbcfg->realm); 597 } 598 ipapwd_set_extradata(pwdata.dn, principal, pwdata.timeNow); "principle" is NULL, as the pwdata.target does not have the attribute "krbPrincipalName". I don't see how DS or ldappasswd is at fault here, but I could easily be missing something. Sorry, you're right. I read the stack too quickly, moving back to ipa. Hi, Any updates please? Thanks and regards, Ming Mark has it right. The IPA password plugin isn't taking into consideration changing the password of a system account (which doesn't have Kerberos attributes) . Upstream ticket: https://pagure.io/freeipa/issue/7561 Fixed upstream master: https://pagure.io/freeipa/c/45d776a7bf05f3495dee078c7dd58ed0db13f64a https://pagure.io/freeipa/c/7c5ecb8d08827a60f77eda0911a6b39db5badf82 ipa-4-5: https://pagure.io/freeipa/c/4065b9978d6da5dc950ed2f1ac27e35c36195162 ipa-4-6: https://pagure.io/freeipa/c/92595cc36b89c06b419299d923e630fb94b4d42a Backported test to ipa-4-6: https://pagure.io/freeipa/c/6652eb088e87cd3f74bd58be3ccda89ec0a46664 version: ipa-server-4.6.4-6.el7.x86_64 389-ds-base-1.3.8.4-11.el7.x86_64 openldap-2.4.44-18.el7.x86_64 Steps: Execute upstream test_commands testsuite: IPATEST_YAML_CONFIG=/root/mh_cfg.yaml ipa-run-tests -v -r a --with-xunit test_integration/test_commands.py::TestIPACommand::test_change_sysaccount_password_issue7561 --logging-level=DEBUG Actual result: [..] [ipatests.pytest_plugins.integration.host.Host.master.cmd47] RUN ['cat', '/root/ipatests/backup_hostname'] [ipatests.pytest_plugins.integration.host.Host.master.cmd47] Exit code: 0 [ipatests.pytest_plugins.integration.host.Host.master.OpenSSHTransport] RUN ['hostname', u'master.testrelm.test'] [ipatests.pytest_plugins.integration.host.Host.master.cmd48] RUN ['hostname', u'master.testrelm.test'] [ipatests.pytest_plugins.integration.host.Host.master.cmd48] Exit code: 0 [ipatests.pytest_plugins.integration.host.Host.master.OpenSSHTransport] RUN ['rm', '/root/ipatests/backup_hostname'] [ipatests.pytest_plugins.integration.host.Host.master.cmd49] RUN ['rm', '/root/ipatests/backup_hostname'] [ipatests.pytest_plugins.integration.host.Host.master.cmd49] Exit code: 0 [ipatests.pytest_plugins.integration.host.Host.master.OpenSSHTransport] RUN ['kdestroy', '-A'] [ipatests.pytest_plugins.integration.host.Host.master.cmd50] RUN ['kdestroy', '-A'] [ipatests.pytest_plugins.integration.host.Host.master.cmd50] Exit code: 0 [ipatests.pytest_plugins.integration.host.Host.master.OpenSSHTransport] RUN ['rm', '-rvf', '/root/ipatests'] [ipatests.pytest_plugins.integration.host.Host.master.cmd51] RUN ['rm', '-rvf', '/root/ipatests'] [ipatests.pytest_plugins.integration.host.Host.master.cmd51] removed ‘/root/ipatests/env.sh’ [ipatests.pytest_plugins.integration.host.Host.master.cmd51] removed directory: ‘/root/ipatests’ [ipatests.pytest_plugins.integration.host.Host.master.cmd51] Exit code: 0 ------------------------------------------- generated xml file: /root/nosetests.xml ------------------------------------------- ================================================= 1 passed in 442.83 seconds ================================================== Full console logs provided. Based on above observations, marking the bug as verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3187 |