summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-21 18:17:59 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-21 19:03:27 +1100
commit6fd9fee502067dd2e864ebfce50302af062ee2d6 (patch)
tree7b34f7c8875077d5b1bd36604d06bf23884d42d9
parent19f8dc9580a772620a39b09585e8c7f8f5deac13 (diff)
downloadsamba-6fd9fee502067dd2e864ebfce50302af062ee2d6.tar.gz
samba-6fd9fee502067dd2e864ebfce50302af062ee2d6.tar.bz2
samba-6fd9fee502067dd2e864ebfce50302af062ee2d6.zip
s4-dsdb: force LDB_ERR_NO_SUCH_ATTRIBUTE on missing schemaInfo
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/dsdb/samdb/ldb_modules/schema_util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_util.c b/source4/dsdb/samdb/ldb_modules/schema_util.c
index 79c0011c0c..aa7a33af42 100644
--- a/source4/dsdb/samdb/ldb_modules/schema_util.c
+++ b/source4/dsdb/samdb/ldb_modules/schema_util.c
@@ -70,9 +70,10 @@ int dsdb_module_schema_info_blob_read(struct ldb_module *ldb_module,
blob_val = ldb_msg_find_ldb_val(schema_res->msgs[0], "schemaInfo");
if (!blob_val) {
- DEBUG(0,("dsdb_module_schema_info_blob_read: no schemaInfo attribute found\n"));
+ ldb_asprintf_errstring(ldb_module_get_ctx(ldb_module),
+ "dsdb_module_schema_info_blob_read: no schemaInfo attribute found");
talloc_free(schema_res);
- return ldb_operr(ldb_module_get_ctx(ldb_module));
+ return LDB_ERR_NO_SUCH_ATTRIBUTE;
}
/* transfer .data ownership to mem_ctx */