s4-torture: switch to generic DRS options flags
authorAndrew Tridgell <tridge@samba.org>
Thu, 14 Jan 2010 03:37:40 +0000 (14:37 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 14 Jan 2010 04:37:59 +0000 (15:37 +1100)
source4/libnet/libnet_become_dc.c

index bccdb8d7f2ecfdcc4b0f74bc2fdd554e6f2da078..b971e43dd7d71066fcdeed8c582bdcc083e670a8 100644 (file)
@@ -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);