From: Stefan Metzmacher Date: Tue, 4 Feb 2014 11:14:37 +0000 (+0100) Subject: s4:torture/rpc: make use of dcerpc_binding_get_string_option("host") X-Git-Tag: tdb-1.2.13~379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da846ba106d5f6d8b78b71e65781e8c10fa81eff;p=thirdparty%2Fsamba.git s4:torture/rpc: make use of dcerpc_binding_get_string_option("host") Signed-off-by: Stefan Metzmacher Reviewed-by: Guenther Deschner --- diff --git a/source4/torture/rpc/dsgetinfo.c b/source4/torture/rpc/dsgetinfo.c index b622f60f92b..7d6b01f0008 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 e54650885b8..d2b25ed1198 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);