summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-12 17:26:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:31 -0500
commit936fb1c0f744f908cde4f332de6c7187e8c6031f (patch)
tree003a6a108b81362de25dddbab78b805f36d7b26e /source4
parente0efa2c97a24be68cf93784c954f7313e1bc591f (diff)
downloadsamba-936fb1c0f744f908cde4f332de6c7187e8c6031f.tar.gz
samba-936fb1c0f744f908cde4f332de6c7187e8c6031f.tar.bz2
samba-936fb1c0f744f908cde4f332de6c7187e8c6031f.zip
r20715: set the dsdb_schema on the ldb_context
after we have created a temporary one metze (This used to be commit 35a88f3d39e447a0e2adbd14676d15e5a5ac9488)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c
index 1af840891e..b48a4c9853 100644
--- a/source4/torture/libnet/libnet_BecomeDC.c
+++ b/source4/torture/libnet/libnet_BecomeDC.c
@@ -264,6 +264,7 @@ static NTSTATUS test_apply_schema(struct test_become_dc_state *s,
struct repsFromTo1 *s_dsa;
char *tmp_dns_name;
uint32_t i;
+ int ret;
s_dsa = talloc_zero(s, struct repsFromTo1);
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,
c->partition->nc.dn,
s->schema,