Bug 234948
Summary: | Console hangs when adding a custom entry and schema items are in certain order | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Ulf Weltman <ulf.weltman> | ||||||
Component: | UI - Dir Browser | Assignee: | Rich Megginson <rmeggins> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Chandrasekar Kannan <ckannan> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 1.0.4 | CC: | aaron, benl, fdelahoyde, jgalipea, mykleb, nkinder | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 8.1 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2009-04-29 22:59:56 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: | 152373, 249650, 493682 | ||||||||
Attachments: |
|
Description
Ulf Weltman
2007-04-03 00:56:01 UTC
*** Bug 435646 has been marked as a duplicate of this bug. *** *** Bug 462970 has been marked as a duplicate of this bug. *** This is one of the consequences of https://bugzilla.redhat.com/show_bug.cgi?id=170791 If you add the following oc: objectClasses: ( 1.3.6.1.4.1.15953.9.2.1 NAME 'sudoRole' SUP top STRUCTURAL DESC 'Sudoer Entries' MUST ( cn ) MAY ( sudoUser $ sudoHost $ sudoCommand $ sudoRunAs $ sudoOption $ description ) X-ORIGIN 'SUDO' ) If you look at the entry over LDAP you see something like this: objectClasses: ( 1.3.6.1.4.1.15953.9.2.1 NAME 'sudoRole' DESC 'Sudoer Entries' STRUCTURAL MUST cn MAY ( sudoUser $ sudoHost $ sudoCommand $ sudoRunAs $ su doOption $ description ) X-ORIGIN ( 'SUDO' 'user defined' ) ) Note that the entry read over LDAP does not have SUP top. This confuses the console. I think the solution is to always add top to structural objectclasses. *** Bug 229693 has been marked as a duplicate of this bug. *** Created attachment 325922 [details]
diffs
Created attachment 325941 [details] cvs commit log Reviewed by: nkinder (Thanks!) Fix Description: The problem is primarily due to https://bugzilla.redhat.com/show_bug.cgi?id=170791 "Schema file parsing overly picky?" - the console schema editor expects an objectclass to always have at least 1 superior. The bug causes SUP not to be present in the schema entry in the directory server. The fix is to use a schema helper function to make sure the list of superior objectclasses always contains at least "top". I also added a check for a null value to avoid the NullPointerException console error. Platforms tested: RHEL5 Flag Day: no Doc impact: no fix verified HP-UX and RHEL 4 - DS 8.1 The following added to user99.ldif and server restart objectClasses: ( testschema-oid NAME 'testschema' SUP top DESC '' STRUCTURAL M AY cn X-ORIGIN 'user defined' ) No NPE, can add user, advanced editor and add new objectclass without issue. 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 |