r20251: I found out that the oid-prefix to uint32-id-prefix mapping is transferred
[jra/samba/.git] / source4 / libnet / libnet_become_dc.c
index 92874dbf0518977825fe0d6b0f10f339dc28dad0..742c92787ddf055ec0424977cf2692ac64b6903b 100644 (file)
@@ -1356,7 +1356,7 @@ static void becomeDC_drsuapi1_add_entry_send(struct libnet_BecomeDC_state *s)
                v = talloc_array(vs, uint32_t, 1);
                if (composite_nomem(v, c)) return;
 
-               v[0]                    = 0x00000002;
+               v[0]                    = DS_BEHAVIOR_WIN2003;
 
                vs[0].value             = &v[0];
 
@@ -1589,8 +1589,8 @@ static void becomeDC_drsuapi_pull_partition_send(struct libnet_BecomeDC_state *s
                r->in.req.req8.h1                       = 0;
                r->in.req.req8.unique_ptr1              = 0;
                r->in.req.req8.unique_ptr2              = 0;
-               r->in.req.req8.ctr12.count              = 0;
-               r->in.req.req8.ctr12.array              = NULL;
+               r->in.req.req8.mapping_ctr.num_mappings = 0;
+               r->in.req.req8.mapping_ctr.mappings     = NULL;
        } else {
                r->in.level                             = 5;
                r->in.req.req5.destination_dsa_guid     = partition->destination_dsa_guid;
@@ -1951,7 +1951,8 @@ static void becomeDC_drsuapi2_update_refs_domain_recv(struct rpc_request *req)
 
        talloc_free(r);
 
-       composite_error(c, NT_STATUS_NOT_IMPLEMENTED);
+       /* TODO: use DDNS updates and register dns names */
+       composite_done(c);
 }
 
 static NTSTATUS becomeDC_ldap2_modify_computer(struct libnet_BecomeDC_state *s)