summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/schema_load.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-03-29 21:16:18 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-04-10 21:40:59 +1000
commit4074739fe71a27feb950aa35f74bb27dc42c17f2 (patch)
treef8317fb6a7c5d44c2ec583618cd0a25c1555a873 /source4/dsdb/samdb/ldb_modules/schema_load.c
parentc8cb17a18c8acd831d9197fd4457881bf58250b1 (diff)
downloadsamba-4074739fe71a27feb950aa35f74bb27dc42c17f2.tar.gz
samba-4074739fe71a27feb950aa35f74bb27dc42c17f2.tar.bz2
samba-4074739fe71a27feb950aa35f74bb27dc42c17f2.zip
s4:schema Try to fix OpenLDAP backend after schema reload support.
If we can't get @REPLCHANGED, default to a value of 0. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/schema_load.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/schema_load.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_load.c b/source4/dsdb/samdb/ldb_modules/schema_load.c
index d13b339f60..50f6888564 100644
--- a/source4/dsdb/samdb/ldb_modules/schema_load.c
+++ b/source4/dsdb/samdb/ldb_modules/schema_load.c
@@ -291,10 +291,8 @@ static int schema_load_init(struct ldb_module *module)
ret = dsdb_module_load_partition_usn(module, schema_dn, &current_usn, NULL);
if (ret != LDB_SUCCESS) {
- ldb_asprintf_errstring(ldb,
- "dsdb_load_partition_usn failed: %s",
- ldb_errstring(ldb));
- return ret;
+ /* Ignore the error and just reload the DB more often */
+ current_usn = 0;
}
return dsdb_schema_from_db(module, schema_dn, current_usn, &schema);