1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r20292: set ntds_dn_str if DsAddEntry() was successful

metze
(This used to be commit 5cb5986067)
This commit is contained in:
Stefan Metzmacher 2006-12-20 21:17:19 +00:00 committed by Gerald (Jerry) Carter
parent fdf95ba005
commit ce38e5368e

View 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;