diff options
-rw-r--r-- | source4/libnet/libnet_become_dc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c index 6457266407..74242c02d4 100644 --- a/source4/libnet/libnet_become_dc.c +++ b/source4/libnet/libnet_become_dc.c @@ -825,6 +825,11 @@ static void becomeDC_recv_cldap(struct tevent_req *req) DEBUG(0,("CLDAP response: forest=%s dns=%s netbios=%s server_site=%s client_site=%s\n", s->forest.dns_name, s->domain.dns_name, s->domain.netbios_name, s->source_dsa.site_name, s->dest_dsa.site_name)); + if (!s->dest_dsa.site_name || strcmp(s->dest_dsa.site_name, "") == 0) { + DEBUG(0,("Got empty client site - using server site name %s\n", + s->source_dsa.site_name)); + s->dest_dsa.site_name = s->source_dsa.site_name; + } becomeDC_connect_ldap1(s); } |