summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-14 14:37:40 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-14 15:37:59 +1100
commita5d611706533bb23f11e4c10edad455e091b5073 (patch)
treea800209760aeeb2e1d0eb139a84d613bd0d9d850 /source4/libnet
parent88ec10b7576b8767b370db1c27ffe703eae852c3 (diff)
downloadsamba-a5d611706533bb23f11e4c10edad455e091b5073.tar.gz
samba-a5d611706533bb23f11e4c10edad455e091b5073.tar.bz2
samba-a5d611706533bb23f11e4c10edad455e091b5073.zip
s4-torture: switch to generic DRS options flags
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_become_dc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
index bccdb8d7f2..b971e43dd7 100644
--- a/source4/libnet/libnet_become_dc.c
+++ b/source4/libnet/libnet_become_dc.c
@@ -2787,12 +2787,11 @@ static void becomeDC_drsuapi_update_refs_send(struct libnet_BecomeDC_state *s,
r->in.req.req1.naming_context = &partition->nc;
r->in.req.req1.dest_dsa_dns_name= ntds_dns_name;
r->in.req.req1.dest_dsa_guid = s->dest_dsa.ntds_guid;
- r->in.req.req1.options = DRSUAPI_DS_REPLICA_UPDATE_ADD_REFERENCE
- | DRSUAPI_DS_REPLICA_UPDATE_DELETE_REFERENCE;
+ r->in.req.req1.options = DRSUAPI_DRS_ADD_REF | DRSUAPI_DRS_DEL_REF;
/* I think this is how we mark ourselves as a RODC */
if (!lp_parm_bool(s->libnet->lp_ctx, NULL, "repl", "RODC", false)) {
- r->in.req.req1.options |= DRSUAPI_DS_REPLICA_UPDATE_WRITEABLE;
+ r->in.req.req1.options |= DRSUAPI_DRS_WRIT_REP;
}
req = dcerpc_drsuapi_DsReplicaUpdateRefs_send(drsuapi->pipe, r, r);