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:
parent
c8cb17a18c
commit
4074739fe7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user