summaryrefslogtreecommitdiffstats
path: root/source4/libnet/libnet_become_dc.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-05 15:41:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:54 -0500
commitbb725bbe0132a24e4a56441b7ee3ce765844e219 (patch)
tree33f46fb70f4c5b1a3556ba84a0a110a243809aa2 /source4/libnet/libnet_become_dc.c
parentb3f6211f866dbc0986c247bf8cb35233e6229fbc (diff)
downloadsamba-bb725bbe0132a24e4a56441b7ee3ce765844e219.tar.gz
samba-bb725bbe0132a24e4a56441b7ee3ce765844e219.tar.xz
samba-bb725bbe0132a24e4a56441b7ee3ce765844e219.zip
r20045: implement the drsuapi_DsRemoveDSServer() call
metze (This used to be commit deb85414c4d54a2eaf7b1318afb2eb6afdea9330)
Diffstat (limited to 'source4/libnet/libnet_become_dc.c')
-rw-r--r--source4/libnet/libnet_become_dc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
index 502b61d87a3..fc46691ab36 100644
--- a/source4/libnet/libnet_become_dc.c
+++ b/source4/libnet/libnet_become_dc.c
@@ -712,7 +712,7 @@ static NTSTATUS becomeDC_ldap1_server_object_add(struct libnet_BecomeDC_state *s
msg = ldb_msg_new(s);
NT_STATUS_HAVE_NO_MEMORY(msg);
- msg->dn = ldb_dn_new_fmt(msg, s->ldap1.ldb, "CN=not,CN=add,CN=%s,CN=Servers,CN=%s,CN=Sites,%s",
+ msg->dn = ldb_dn_new_fmt(msg, s->ldap1.ldb, "CN=%s,CN=Servers,CN=%s,CN=Sites,%s",
s->dest_dsa.netbios_name,
s->dest_dsa.site_name,
s->forest.config_dn_str);
@@ -792,7 +792,7 @@ static void becomeDC_connect_ldap1(struct libnet_BecomeDC_state *s)
if (!composite_is_ok(c)) return;
c->status = becomeDC_ldap1_server_object_add(s);
-/* ignore for now... if (!composite_is_ok(c)) return;*/
+ if (!composite_is_ok(c)) return;
becomeDC_connect_ldap2(s);
}