r20292: set ntds_dn_str if DsAddEntry() was successful
authorStefan Metzmacher <metze@samba.org>
Wed, 20 Dec 2006 21:17:19 +0000 (21:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:29:33 +0000 (14:29 -0500)
metze
(This used to be commit 5cb59860676e86764cfaf7cd1c6e632c95badeb9)

source4/libnet/libnet_become_dc.c

index 3f3bfe16b64174b2c323aa1019f099a0b82bd59f..b906f312df53fb8112704d4840ef7f382b279d99 100644 (file)
@@ -1472,6 +1472,10 @@ static void becomeDC_drsuapi1_add_entry_recv(struct rpc_request *req)
 
        talloc_free(r);
 
+       s->dest_dsa.ntds_dn_str = talloc_asprintf(s, "CN=NTDS Settings,%s",
+                                                 s->dest_dsa.server_dn_str);
+       if (composite_nomem(s->dest_dsa.ntds_dn_str, c)) return;
+
        c->status = becomeDC_prepare_db(s);
        if (!composite_is_ok(c)) return;