The net.api.become.dc tests would always pass the request into
libnet_vampire_cb_store_chunk() with req_level=0, which meant that
storing the chunk didn't use the correct replica_flags/exop.
I noticed this problem when working on client-side support for GET_TGT.
My changes relied on the critical-only request flag being passed down
into replmd, but because the request flags weren't passed correctly, my
changes caused the become_dc tests to fail.
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
struct libnet_BecomeDC_Partition *partition,
struct drsuapi_DsGetNCChanges *r)
{
- uint32_t req_level = 0;
+ uint32_t req_level = r->in.level;
struct drsuapi_DsGetNCChangesRequest5 *req5 = NULL;
struct drsuapi_DsGetNCChangesRequest8 *req8 = NULL;
struct drsuapi_DsGetNCChangesRequest10 *req10 = NULL;