| Summary: | Possible to have duplicate values of attribute monitored by Attribute Uniqueness plugin | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Ján Rusnačko <jrusnack> |
| Component: | 389-ds-base | Assignee: | Rich Megginson <rmeggins> |
| Status: | CLOSED NOTABUG | QA Contact: | Sankar Ramalingam <sramling> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | jgalipea, mkubik, mreynolds, nkinder |
| Target Milestone: | rc | ||
| Target Release: | 7.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-11 19:42:42 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: | |
|
Description
Ján Rusnačko
2013-11-28 15:29:37 UTC
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. Upstream ticket: https://fedorahosted.org/389/ticket/47639 The issue is that the index that is removed (sn) is a default index. So at the next restart that index is automatically recreated by the backend. So when the next add takes place there is an "sn" index to use, but it's empty. The server uses this index to find any matching entries, but none are found because it's empty. This allows the duplicate "sn" valued entry to be added. Removing the default index configuration at the same time the backend index is deleted achieves the desired results. To correctly remove a default user index, it must also be deleted from the default index branch of cn=config: [1] ldapdelete -h $HOST -p $PORT -D "cn=directory manager" -w Secret123 "cn=sn,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config" [2] ldapdelete -h $HOST -p $PORT -D "cn=directory manager" -w Secret123 "cn=sn,cn=default indexes,cn=config,cn=ldbm database,cn=plugins,cn=config" This will not be fixed in the core server, instead a doc bug has been filed to document the correct way to remove an default user index. https://bugzilla.redhat.com/show_bug.cgi?id=1108356 |