Bug 918713
| Summary: | Segfault during initial LDIF import: str2entry_dupcheck() | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Nathan Kinder <nkinder> |
| Component: | 389-ds-base | Assignee: | Rich Megginson <rmeggins> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Sankar Ramalingam <sramling> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.0 | CC: | amsharma, jgalipea, jrusnack, nhosoi, nkinder |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 389-ds-base-1.3.1.2-1.el7 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: If an attribute type having multiple values exists
in an entry, and any compare function is not associated with the
attribute type, fast_dup_check flag was not disabled from the second
time.
Consequence: Since fast_dup_check requires the compare function based on
the attribute syntax, it causes the segfault.
Fix: This patch checks whether a compare function is
associated with the multi-valued attribute not just at the first
time the attribute type appears but at the second time and after,
and disable fast_dup_check properly if needed.
Result: import does not crash the server even if it contains a particular type of attribute type.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-13 13:16:19 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Nathan Kinder
2013-03-06 18:16:33 UTC
moving all ON_QA bugs to MODIFIED in order to add them to the errata (can't add bugs in the ON_QA state to an errata). When the errata is created, the bugs should be automatically moved back to ON_QA. Please see the ticket https://fedorahosted.org/389/ticket/545. In the original bug description by the reporter, he put his ldif file which caused the error. (Search "The LDIF file being imported looks like this") The problem is he tried to import a file which looks like: dn: <DN> changetype: modify replace: <type> <type>: <value> Instead of crashing, we should issue an error. /usr/sbin/setup-ds.pl -s -f /root/setup.inf Your new DS instance 'dstet' was successfully created. Exiting . . . Log file is '/tmp/setupxwZ4mG.log' [root@dstet ~]# cat setup.inf [General] SuiteSpotGroup = jrusnack SuiteSpotUserID = jrusnack FullMachineName = dstet.example.com [slapd] InstallLdifFile = /home/jrusnack/import.ldif ServerIdentifier = dstet ServerPort = 389 AddOrgEntries = Yes RootDN = cn=Directory Manager RootDNPwd = Secret123 Suffix = dc=example,dc=com AddSampleEntries = No Verified on RHEL7 with 389-ds-base-1.3.1.6-8.el7.x86_64 This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |