diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-04 09:59:54 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-02-13 11:54:16 +0100 |
commit | 776f5c65bf6123d4f6909724436c48fe900866f0 (patch) | |
tree | 048bdde6960364489b56f544c84d5638136db117 /source4/libnet/libnet_become_dc.c | |
parent | ab5f89bc72e4d42fd12572e267f8c236705646fb (diff) | |
download | samba-776f5c65bf6123d4f6909724436c48fe900866f0.tar.gz samba-776f5c65bf6123d4f6909724436c48fe900866f0.tar.xz samba-776f5c65bf6123d4f6909724436c48fe900866f0.zip |
s4:libnet: use helper functions to access dcerpc_binding->target_hostname
If possible also specify the already known address as dcerpc_binding->host.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/libnet/libnet_become_dc.c')
-rw-r--r-- | source4/libnet/libnet_become_dc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c index 9422172f69..6d00fcc37b 100644 --- a/source4/libnet/libnet_become_dc.c +++ b/source4/libnet/libnet_become_dc.c @@ -1573,9 +1573,10 @@ static void becomeDC_drsuapi_connect_send(struct libnet_BecomeDC_state *s, { print_str = "print,"; } - binding_str = talloc_asprintf(s, "ncacn_ip_tcp:%s[%s%sseal]", - s->source_dsa.dns_name, - krb5_str, print_str); + binding_str = talloc_asprintf(s, "ncacn_ip_tcp:%s[%s%sseal,target_hostname=%s]", + s->source_dsa.address, + krb5_str, print_str, + s->source_dsa.dns_name); if (composite_nomem(binding_str, c)) return; c->status = dcerpc_parse_binding(s, binding_str, &drsuapi->binding); talloc_free(binding_str); |