summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-04-25 16:36:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:37 -0500
commit9aeaac2c2bf37431ed60cfe86f25dd9ee5505937 (patch)
treeb5b27565bdf6de651298a60b18f7ae43004d5299 /source4/dsdb/samdb
parent771b57b3fcd0daeb3731f18e5b4ef95013150b82 (diff)
downloadsamba-9aeaac2c2bf37431ed60cfe86f25dd9ee5505937.tar.gz
samba-9aeaac2c2bf37431ed60cfe86f25dd9ee5505937.tar.bz2
samba-9aeaac2c2bf37431ed60cfe86f25dd9ee5505937.zip
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)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/entryUUID.c8
1 files changed, 4 insertions, 4 deletions
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);