dsdb: Improve error messages when dsdb_set_schema_from_ldif() fails
authorAndrew Bartlett <abartlet@samba.org>
Tue, 23 May 2017 03:56:55 +0000 (15:56 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 10 Jun 2017 19:48:20 +0000 (21:48 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dsdb/schema/schema_set.c

index e6d5ce627ce5a0b87d4fc1879677a5e6f159b1f0..fd48d279af24fc5bdecc6933169c8da272584d2b 100644 (file)
@@ -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;
        }