summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-04 12:14:37 +0100
committerGünther Deschner <gd@samba.org>2014-02-13 11:54:18 +0100
commitda846ba106d5f6d8b78b71e65781e8c10fa81eff (patch)
treea7c55049fba3f6447065ea67ce31a2fa9746847d
parentff0d4d39dd2fecde51dc8d10aaeff706cd554cac (diff)
downloadsamba-da846ba106d5f6d8b78b71e65781e8c10fa81eff.tar.gz
samba-da846ba106d5f6d8b78b71e65781e8c10fa81eff.tar.xz
samba-da846ba106d5f6d8b78b71e65781e8c10fa81eff.zip
s4:torture/rpc: make use of dcerpc_binding_get_string_option("host")
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
-rw-r--r--source4/torture/rpc/dsgetinfo.c2
-rw-r--r--source4/torture/rpc/testjoin.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/rpc/dsgetinfo.c b/source4/torture/rpc/dsgetinfo.c
index b622f60f92..7d6b01f000 100644
--- a/source4/torture/rpc/dsgetinfo.c
+++ b/source4/torture/rpc/dsgetinfo.c
@@ -67,7 +67,7 @@ struct DsGetinfoTest {
*/
static const char *torture_get_ldap_base_dn(struct torture_context *tctx, struct dcerpc_pipe *p)
{
- const char *hostname = p->binding->host;
+ const char *hostname = dcerpc_binding_get_string_option(p->binding, "host");
struct ldb_context *ldb;
const char *ldap_url = talloc_asprintf(p, "ldap://%s", hostname);
const char *attrs[] = { "defaultNamingContext", NULL };
diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c
index e54650885b..d2b25ed119 100644
--- a/source4/torture/rpc/testjoin.c
+++ b/source4/torture/rpc/testjoin.c
@@ -660,7 +660,8 @@ static NTSTATUS torture_leave_ads_domain(struct torture_context *torture,
return NT_STATUS_NO_MEMORY;
}
- remote_ldb_url = talloc_asprintf(tmp_ctx, "ldap://%s", libnet_r->out.samr_binding->host);
+ remote_ldb_url = talloc_asprintf(tmp_ctx, "ldap://%s",
+ dcerpc_binding_get_string_option(libnet_r->out.samr_binding, "host"));
if (!remote_ldb_url) {
libnet_r->out.error_string = NULL;
talloc_free(tmp_ctx);