s4:schema Try to fix OpenLDAP backend after schema reload support.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 29 Mar 2010 10:16:18 +0000 (21:16 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 10 Apr 2010 11:40:59 +0000 (21:40 +1000)
If we can't get @REPLCHANGED, default to a value of 0.

Andrew Bartlett

source4/dsdb/samdb/ldb_modules/schema_load.c

index d13b339f6047ccf0484bd870e3259a62f51c148b..50f6888564897355c0589c181c8f4f2a4a831f0f 100644 (file)
@@ -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);