Bug 2100337
Summary: | dsconf backend export userroot fails ldap.DECODING_ERROR | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Marc Sauton <msauton> |
Component: | 389-ds-base | Assignee: | mreynolds |
Status: | CLOSED ERRATA | QA Contact: | RHDS QE <ds-qe-bugs> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 9.0 | CC: | bsmejkal, gkimetto, ldap-maint, mreynolds, pasik, sgouvern |
Target Milestone: | rc | Keywords: | TestCaseProvided, Triaged |
Target Release: | 9.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | sync-to-jira | ||
Fixed In Version: | 389-ds-base-2.1.3-1.el9 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-11-15 10:30:16 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
Marc Sauton
2022-06-23 06:10:49 UTC
I can reproduce the issue, and it's because we are not checking if the be_name is a DN before calling str2dn. be_name can be a backend name (userroot) or the suffix (dc=example,dc=com), but the code logic breaks when there are multiple backends. I'll open an upstream ticket... Reproducer: [1] Create a second backend # dsconf -D 'cn=Directory Manager' -w password ldap://localhost backend create --be-name testRoot --suffix o=test [2] Attempt to export the database (it should not fail) # dsconf -D 'cn=Directory Manager' -w password ldap://localhost backend export userroot 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 (Moderate: 389-ds-base security, bug fix, and enhancement update), 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/RHSA-2022:8162 |