From: Andrew Bartlett Date: Tue, 23 May 2017 03:56:55 +0000 (+1200) Subject: dsdb: Improve error messages when dsdb_set_schema_from_ldif() fails X-Git-Tag: ldb-1.1.31~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef59a7cc1d9d2a8be120369478394981f127d378;p=thirdparty%2Fsamba.git dsdb: Improve error messages when dsdb_set_schema_from_ldif() fails Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c index e6d5ce627ce..fd48d279af2 100644 --- a/source4/dsdb/schema/schema_set.c +++ b/source4/dsdb/schema/schema_set.c @@ -893,6 +893,8 @@ WERROR dsdb_set_schema_from_ldif(struct ldb_context *ldb, ret = dsdb_set_schema(ldb, schema, true); if (ret != LDB_SUCCESS) { status = WERR_FOOBAR; + DEBUG(0,("ERROR: dsdb_set_schema() failed with %s / %s\n", + ldb_strerror(ret), ldb_errstring(ldb))); goto failed; }