mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r20715: set the dsdb_schema on the ldb_context
after we have created a temporary one metze
This commit is contained in:
parent
df8e97014b
commit
35a88f3d39
@ -264,6 +264,7 @@ static NTSTATUS test_apply_schema(struct test_become_dc_state *s,
|
|||||||
struct repsFromTo1 *s_dsa;
|
struct repsFromTo1 *s_dsa;
|
||||||
char *tmp_dns_name;
|
char *tmp_dns_name;
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
int ret;
|
||||||
|
|
||||||
s_dsa = talloc_zero(s, struct repsFromTo1);
|
s_dsa = talloc_zero(s, struct repsFromTo1);
|
||||||
NT_STATUS_HAVE_NO_MEMORY(s_dsa);
|
NT_STATUS_HAVE_NO_MEMORY(s_dsa);
|
||||||
@ -378,6 +379,11 @@ static NTSTATUS test_apply_schema(struct test_become_dc_state *s,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = dsdb_set_schema(s->ldb, s->schema);
|
||||||
|
if (ret != LDB_SUCCESS) {
|
||||||
|
return NT_STATUS_FOOBAR;
|
||||||
|
}
|
||||||
|
|
||||||
status = dsdb_extended_replicated_objects_commit(s->ldb,
|
status = dsdb_extended_replicated_objects_commit(s->ldb,
|
||||||
c->partition->nc.dn,
|
c->partition->nc.dn,
|
||||||
s->schema,
|
s->schema,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user