From 4074739fe71a27feb950aa35f74bb27dc42c17f2 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 29 Mar 2010 21:16:18 +1100 Subject: 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 --- source4/dsdb/samdb/ldb_modules/schema_load.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source4') 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, ¤t_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); -- cgit