Univention Bugzilla – Bug 49500
ldap_extension: validation failed for univention-app.schema
Last modified: 2019-06-05 10:13:39 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.
f796d69d8e3e8f31004d643cefbc1e6409f95772 univention-lib dcc921c11be11affba9082147adaa5f3da4abbff yaml
OK: stderr is logged. BTW: subprocess.Popen(..., stderr=subprocess.STDOUT) would write both into stdout. ~OK: YAML description
<http://errata.software-univention.de/ucs/4.4/125.html>