summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-12-13 11:34:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:23 -0500
commit985e86b04d4035c133a29a6a681523b9ca247a19 (patch)
tree20e24b0e6c975bd9065e41a2ba1930b096f66a64 /source4
parentfedca61e8fd1755d9777672b62c9833dce9331dc (diff)
downloadsamba-985e86b04d4035c133a29a6a681523b9ca247a19.tar.gz
samba-985e86b04d4035c133a29a6a681523b9ca247a19.tar.bz2
samba-985e86b04d4035c133a29a6a681523b9ca247a19.zip
r4176: I just remeber that I have already implement STR_CONFORMANT
so use it in DsReplicaSync() metze (This used to be commit ca610da1fc3c059d35e17238e8cac5e5b38790c3)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/idl/drsuapi.idl3
-rw-r--r--source4/torture/rpc/drsuapi.c8
2 files changed, 3 insertions, 8 deletions
diff --git a/source4/librpc/idl/drsuapi.idl b/source4/librpc/idl/drsuapi.idl
index a3f6cf2100..c5f7f9f8d7 100644
--- a/source4/librpc/idl/drsuapi.idl
+++ b/source4/librpc/idl/drsuapi.idl
@@ -55,8 +55,7 @@ interface drsuapi
uint32 unknown2;
GUID guid1;
uint8 unknown3[28];
- [range(0,0xA00000)] uint32 length;
- [size_is(length+1)] uint16 nc_dn[*];
+ [flag(STR_SIZE4|STR_CHARLEN|STR_CONFORMANT)] string nc_dn;
} drsuapi_DsReplicaSyncRequest1Info;
typedef struct {
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c
index 0b1377c740..7bef1e5360 100644
--- a/source4/torture/rpc/drsuapi.c
+++ b/source4/torture/rpc/drsuapi.c
@@ -780,22 +780,18 @@ static BOOL test_DsReplicaSync(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
r.in.level = array[i].level;
switch(r.in.level) {
- case 1: {
- uint16_t string[] = { 0x0064, 0x0063, 0x003d, 0x0073, 0x0039, 0x0000};
- ZERO_STRUCT(r.in.req.req1);
+ case 1:
r.in.req.req1.info = &info1;
r.in.req.req1.info->unknown1 = 32;
r.in.req.req1.info->unknown2 = 120;
ZERO_STRUCT(r.in.req.req1.info->guid1);
ZERO_ARRAY(r.in.req.req1.info->unknown3);
- r.in.req.req1.info->length = ARRAY_SIZE(string)-1;
- r.in.req.req1.info->nc_dn = string;/*priv->domain_obj_dn*/;
+ r.in.req.req1.info->nc_dn = priv->domain_obj_dn;
r.in.req.req1.guid1 = priv->dcinfo.ntds_guid;
r.in.req.req1.string1 = NULL;
r.in.req.req1.unknown1 = 16;
break;
}
- }
status = dcerpc_drsuapi_DsReplicaSync(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {