diff options
-rw-r--r-- | source4/torture/rpc/dsgetinfo.c | 2 | ||||
-rw-r--r-- | source4/torture/rpc/testjoin.c | 3 |
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); |