diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-04-25 16:36:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:51:37 -0500 |
commit | 9aeaac2c2bf37431ed60cfe86f25dd9ee5505937 (patch) | |
tree | b5b27565bdf6de651298a60b18f7ae43004d5299 | |
parent | 771b57b3fcd0daeb3731f18e5b4ef95013150b82 (diff) | |
download | samba-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)
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/entryUUID.c | 8 |
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); |