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_join.c | |
parent | ab5f89bc72e4d42fd12572e267f8c236705646fb (diff) | |
download | samba-776f5c65bf6123d4f6909724436c48fe900866f0.tar.gz |
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_join.c')
-rw-r--r-- | source4/libnet/libnet_join.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c index 1c5253191de..f9578407de3 100644 --- a/source4/libnet/libnet_join.c +++ b/source4/libnet/libnet_join.c @@ -243,7 +243,7 @@ static NTSTATUS libnet_JoinADSDomain(struct libnet_context *ctx, struct libnet_J /* Now we know the user's DN, open with LDAP, read and modify a few things */ remote_ldb_url = talloc_asprintf(tmp_ctx, "ldap://%s", - drsuapi_binding->target_hostname); + dcerpc_binding_get_string_option(drsuapi_binding, "target_hostname")); if (!remote_ldb_url) { r->out.error_string = NULL; talloc_free(tmp_ctx); |