summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-14 15:56:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:50 -0500
commitcbc8bc056c58e16d3e595e8f5615508e24cea71b (patch)
treec92a8b556724398cf3627fbfe8d41056b499b3e4 /source4
parentcaf37188d625675d542736a69150f4e73de66666 (diff)
downloadsamba-cbc8bc056c58e16d3e595e8f5615508e24cea71b.tar.gz
samba-cbc8bc056c58e16d3e595e8f5615508e24cea71b.tar.bz2
samba-cbc8bc056c58e16d3e595e8f5615508e24cea71b.zip
r20769: - it's wrong to add the schemaInfo blob as 2nd value to the prefixMap attribute...(was a typo)
- as the schemaInfo attribute is already applied to the ldb because it's a replicated attribute we should not replace it metze (This used to be commit 56109df406a60ef27a2a3d94979d46c470e32117)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c
index c11801e5db..e4cd4ec35f 100644
--- a/source4/torture/libnet/libnet_BecomeDC.c
+++ b/source4/torture/libnet/libnet_BecomeDC.c
@@ -430,16 +430,12 @@ static NTSTATUS test_apply_schema(struct test_become_dc_state *s,
return werror_to_ntstatus(status);
}
+ /* we only add prefixMap here, because schemaInfo is a replicated attribute and already applied */
ret = ldb_msg_add_value(msg, "prefixMap", &prefixMap_val, &prefixMap_el);
if (ret != LDB_SUCCESS) {
return NT_STATUS_FOOBAR;
}
prefixMap_el->flags = LDB_FLAG_MOD_REPLACE;
- ret = ldb_msg_add_value(msg, "prefixMap", &schemaInfo_val, &schemaInfo_el);
- if (ret != LDB_SUCCESS) {
- return NT_STATUS_FOOBAR;
- }
- schemaInfo_el->flags = LDB_FLAG_MOD_REPLACE;
ret = ldb_modify(s->ldb, msg);
if (ret != LDB_SUCCESS) {