From 822b4927288231b7a90579af9792608a0bdef706 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 23 May 2014 16:41:33 +1200 Subject: [PATCH] dsdb: Do not give an error is metadata.tdb does not yet exist Change-Id: I88ee188c776364fd66da388ce01fc9288aa2ded0 Signed-off-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- source4/dsdb/samdb/ldb_modules/schema_load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/dsdb/samdb/ldb_modules/schema_load.c b/source4/dsdb/samdb/ldb_modules/schema_load.c index 25a780150a8..f19d0c5830b 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_load.c +++ b/source4/dsdb/samdb/ldb_modules/schema_load.c @@ -113,8 +113,8 @@ static int schema_metadata_get_uint64(struct ldb_module *module, TALLOC_CTX *tmp_ctx; if (!data || !data->metadata) { - return ldb_module_error(module, LDB_ERR_OPERATIONS_ERROR, - "schema: metadata tdb not initialized"); + *value = default_value; + return LDB_SUCCESS; } tmp_ctx = talloc_new(NULL); -- 2.11.4.GIT