1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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
This commit is contained in:
Andrew Bartlett 2010-03-29 21:16:18 +11:00
parent c8cb17a18c
commit 4074739fe7

View 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);