Bug 445775
Summary: | standard schema gets replicated if DESC is empty | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Directory Server | Reporter: | Ulf Weltman <ulf.weltman> | ||||
Component: | Directory Server | Assignee: | Nathan Kinder <nkinder> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Chandrasekar Kannan <ckannan> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 8.0 | CC: | benl, jgalipea, nhosoi, nkinder, rmeggins | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Fixed In Version: | 8.1 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-04-29 23:04:00 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 249650, 493682 | ||||||
Attachments: |
|
Description
Ulf Weltman
2008-05-09 00:55:34 UTC
To reproduce: - Setup 2 DS instances and configure them for replication. - Add a new custom attribute definition to the first master over LDAP. - Add a user entry to the first master (no need to use new schema). At this point, the 99user.ldif file on the first master should only contain your new attribute definition. The 99user.ldif file on the second master will contain this new attribute definition as well, but it also contain a number of other default schema definitions having to do with e-mail related objectclasses/attributes. Created attachment 325750 [details]
CVS Diffs
The fix is to ensure that we list an empty DESC element in the LDAP entry representation of the schema when searching for it if that is the way it is defined on disk.
Checked into ldapserver (HEAD). Thanks to Noriko for her review! Checking in ldap/servers/slapd/schema.c; /cvs/dirsec/ldapserver/ldap/servers/slapd/schema.c,v <-- schema.c new revision: 1.18; previous revision: 1.17 done If I am correct in interpreting this bug: I should see an empty DESC element in the LDAP entry when searching the schema - I don't see this: attributeTypes: ( mytestattribute-oid NAME 'mytestattribute' SYNTAX 1.3.6.1.4 .1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'user defined' ) 99user.ldif: attributeTypes: ( mytestattribute-oid NAME 'mytestattribute' SYNTAX 1.3.6.1.4 .1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'user defined' ) nsSchemaCSN: 49bfae6a000000000000 Both replicas are the same. Is this correct? (In reply to comment #4) > If I am correct in interpreting this bug: I should see an empty DESC element > in the LDAP entry when searching the schema - I don't see this: > > attributeTypes: ( mytestattribute-oid NAME 'mytestattribute' SYNTAX 1.3.6.1.4 > .1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'user defined' ) > > 99user.ldif: > > attributeTypes: ( mytestattribute-oid NAME 'mytestattribute' SYNTAX 1.3.6.1.4 > .1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'user defined' ) > nsSchemaCSN: 49bfae6a000000000000 > > Both replicas are the same. > > Is this correct? Yes, this looks correct as long as no other standard schema magically appeared in either 99user.ldif. The problem was that some standard schema had empty descriptions, which would cause those definitions to get replicated into the other masters 99user.ldif. verified RHEL 5 <--> RHEL 4 DS 8.1 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-0455.html |