Bug 733349

Summary: Log not clear enough on schema errors
Product: [Retired] 389 Reporter: Simo Sorce <ssorce>
Component: Directory ServerAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.2.8CC: nhosoi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-10 18:41:06 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: 690319    

Description Simo Sorce 2011-08-25 14:29:17 UTC
When a schema file has an error, the log file is not clear enough and may give the impression the error is in dse.ldif

Example:
[25/Aug/2011:09:53:47 -0400] dse - parsing dse entry [attributeTypes]
[25/Aug/2011:09:53:47 -0400] dse - Please edit the file to correct the reported problems and then restart the server.


Expected behaviour:
The server specifies in which file (and possible line number) the error was encountered.

Comment 3 Martin Kosek 2012-01-04 13:22:05 UTC
Upstream ticket:
https://fedorahosted.org/389/ticket/35

Comment 4 Noriko Hosoi 2012-01-25 23:09:55 UTC
Sample error log:
[] - str2entry_dupcheck: entry has no dn
[] dse_read_one_file - Parsing entry (lineno: 19) in file /etc/dirsrv/slapd-ID/schema/03bad.ldif failed.
[] dse_read_one_file - Invalid section [attributeTypes: ( 2.16.840.1.113730.3.1.34 NAME 'ref' DESC 'LDAP referrals attribute type' SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'LDAPv3 referrals Internet Draft' )
attributeTypes: ( 2.16.840.1.113730.3.1.36 NAME 'nsLicensedFor' DESC 'Netscape def ...]
[] dse - Please edit the file to correct the reported problems and then restart the server.