From 9aeaac2c2bf37431ed60cfe86f25dd9ee5505937 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 25 Apr 2007 16:36:15 +0000 Subject: r22521: Don't fail the module load just because we don't have a schema yet. This code to be replaced by metze's schema loader soon... Andrew Bartlett (This used to be commit a354ec282232c00d149304d90f9b8ef01c9a2e5f) --- source4/dsdb/samdb/ldb_modules/entryUUID.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/entryUUID.c b/source4/dsdb/samdb/ldb_modules/entryUUID.c index 314e44111a..605614f160 100644 --- a/source4/dsdb/samdb/ldb_modules/entryUUID.c +++ b/source4/dsdb/samdb/ldb_modules/entryUUID.c @@ -790,8 +790,8 @@ static int entryUUID_init(struct ldb_module *module) ret = fetch_objectclass_schema(module->ldb, schema_dn, entryUUID_private, &entryUUID_private->objectclass_res); if (ret != LDB_SUCCESS) { - ldb_asprintf_errstring(module->ldb, "Failed to fetch objectClass schema elements: %s\n", ldb_errstring(module->ldb)); - return ret; + /* Perhaps no schema yet */ + return LDB_SUCCESS; } ret = find_base_dns(module, entryUUID_private); @@ -825,8 +825,8 @@ static int nsuniqueid_init(struct ldb_module *module) ret = fetch_objectclass_schema(module->ldb, schema_dn, entryUUID_private, &entryUUID_private->objectclass_res); if (ret != LDB_SUCCESS) { - ldb_asprintf_errstring(module->ldb, "Failed to fetch objectClass schema elements: %s\n", ldb_errstring(module->ldb)); - return ret; + /* Perhaps no schema yet */ + return LDB_SUCCESS; } ret = find_base_dns(module, entryUUID_private); -- cgit