s4:dsdb Show more detail in failure to compute the aggregate DN.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 16 Mar 2010 03:56:32 +0000 (14:56 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 16 Mar 2010 08:26:09 +0000 (19:26 +1100)
Andrew Bartlett

source4/dsdb/samdb/ldb_modules/schema_data.c

index c71a01d6306afef93d06c7a6a06c9c3e7456fd82..25f2dcec8b719c20495ee9f5963874a630256c10 100644 (file)
@@ -124,7 +124,7 @@ static int schema_data_init(struct ldb_module *module)
        /* Used to check to see if this is a result on the CN=Aggregate schema */
        data->aggregate_dn = samdb_aggregate_schema_dn(ldb, data);
        if (!data->aggregate_dn) {
-               ldb_set_errstring(ldb, "Could not build aggregate schema DN");
+               ldb_asprintf_errstring(ldb, "schema_data_init: Could not build aggregate schema DN for schema in %s", ldb_dn_get_linearized(schema_dn));
                return LDB_ERR_OPERATIONS_ERROR;
        }