Bug 49500

Summary: ldap_extension: validation failed for univention-app.schema
Product: UCS Reporter: Felix Botner <botner>
Component: LDAPAssignee: Felix Botner <botner>
Status: CLOSED FIXED QA Contact: Florian Best <best>
Severity: normal    
Priority: P5    
Version: UCS 4.4   
Target Milestone: UCS 4.4-0-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 49596    

Description Felix Botner univentionstaff 2019-05-17 10:06:11 CEST
Recently the ldap schema extension validation failed in some jenkins test (http://jenkins.knut.univention.de:8080/job/UCS-4.4/job/UCS-4.4-0/job/AutotestJoin/SambaVersion=s4,Systemrolle=master-part-II/ws/test/autotest-091-master-s4-part-II.log/*view*/).

Unfortunately the output seems to be broken see, python/ldap_extension.py

 # Slapschema doesn't fail on schema errors, errors are 
 # printed to stdout (Bug #45571)
 ud.debug(ud.LISTENER, ud.ERROR, '%s: validation failed:\n%s.' % (name, stdout))

but:

-> slapschema >/dev/null
5cddc2bc /var/lib/univention-ldap/local-schema/univention-app.schema: line 18: unknown directive <ttributetype> outside backend info and database definitions.
slapschema: bad configuration file!
-> slapschema 2>/dev/null

So first step is to also print stderr to the log.
Comment 1 Felix Botner univentionstaff 2019-05-17 10:22:13 CEST
f796d69d8e3e8f31004d643cefbc1e6409f95772 univention-lib
dcc921c11be11affba9082147adaa5f3da4abbff yaml
Comment 2 Florian Best univentionstaff 2019-05-20 17:09:02 CEST
OK: stderr is logged.
BTW: subprocess.Popen(..., stderr=subprocess.STDOUT) would write both into stdout.
~OK: YAML description
Comment 3 Arvid Requate univentionstaff 2019-05-29 13:24:27 CEST
<http://errata.software-univention.de/ucs/4.4/125.html>