Bug 2133818
| Summary: | rpcclient 4.17.0 unable to resolve server hostname | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Florence Blanc-Renaud <frenaud> |
| Component: | samba | Assignee: | Andreas Schneider <asn> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 37 | CC: | abokovoy, aboscatt, anoopcs, asn, gdeschner, iboukris, jarrpa, jstephen, lmohanty, madam, pfilipen, sbose, ssorce |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | samba-4.17.1-1.fc38 samba-4.17.1-1.fc37 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-10-19 15:41:28 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
Florence Blanc-Renaud
2022-10-11 13:54:46 UTC
Can you try if instead of running rpcclient --use-kerberos=desired root-dc.ad.test -c 'deletetrustdom testrelm.test' give the hostname as part of a dcerpc binding string like: rpcclient --use-kerberos=desired ncacn_np:root-dc.ad.test -c 'deletetrustdom testrelm.test' makes a difference? The result is the same. I really suspect that the issue is related to popt 1.19 because rpcclient is calling poptFreeContext and later on refers to values obtained with popt but that have been freed. Easy to see with a debugger, printing server before/after the call to poptFreeContext (https://github.com/samba-team/samba/blob/master/source3/rpcclient/rpcclient.c#L1249) produces different results. Before the free, the value is ok, but after the free it's completely random: (gdb) print(server) $1 = 0x5555556e0fa0 "ncacn_np:root-dc.ad.test" (gdb) n 1249 poptFreeContext(pc); (gdb) n 1250 samba_cmdline_burn(argc, argv); (gdb) print(server) $2 = 0x5555556e0fa0 "\340\304;" This already has been addressed upstream: https://bugzilla.samba.org/show_bug.cgi?id=15205 We will get Samba 4.17.1 next week which will fix it. FEDORA-2022-314a73e994 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-314a73e994 FEDORA-2022-314a73e994 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2022-1b0ba70aca has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1b0ba70aca FEDORA-2022-1b0ba70aca has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-1b0ba70aca` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-1b0ba70aca See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2022-1b0ba70aca has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. |