summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-20 21:17:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:33 -0500
commitce38e5368ef842768ff9655cb071270ec78aac84 (patch)
tree34b400c02ef17269e5f634265e2685a6bc6192d0 /source4
parentfdf95ba0058e978f637c46f714677fc55240e51a (diff)
downloadsamba-ce38e5368ef842768ff9655cb071270ec78aac84.tar.gz
samba-ce38e5368ef842768ff9655cb071270ec78aac84.tar.bz2
samba-ce38e5368ef842768ff9655cb071270ec78aac84.zip
r20292: set ntds_dn_str if DsAddEntry() was successful
metze (This used to be commit 5cb59860676e86764cfaf7cd1c6e632c95badeb9)
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet_become_dc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
index 3f3bfe16b6..b906f312df 100644
--- a/source4/libnet/libnet_become_dc.c
+++ b/source4/libnet/libnet_become_dc.c
@@ -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;