mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s4-torture: add torture_rpc_connection_with_binding()
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
8f4e426f33
commit
b53b3b8e32
@ -75,12 +75,25 @@ _PUBLIC_ NTSTATUS torture_rpc_connection(struct torture_context *tctx,
|
||||
NTSTATUS status;
|
||||
struct dcerpc_binding *binding;
|
||||
|
||||
dcerpc_init();
|
||||
|
||||
status = torture_rpc_binding(tctx, &binding);
|
||||
if (NT_STATUS_IS_ERR(status))
|
||||
return status;
|
||||
|
||||
return torture_rpc_connection_with_binding(tctx, binding, p, table);
|
||||
}
|
||||
|
||||
/**
|
||||
* open a rpc connection to the chosen binding string
|
||||
*/
|
||||
_PUBLIC_ NTSTATUS torture_rpc_connection_with_binding(struct torture_context *tctx,
|
||||
struct dcerpc_binding *binding,
|
||||
struct dcerpc_pipe **p,
|
||||
const struct ndr_interface_table *table)
|
||||
{
|
||||
NTSTATUS status;
|
||||
|
||||
dcerpc_init();
|
||||
|
||||
status = dcerpc_pipe_connect_b(tctx,
|
||||
p, binding, table,
|
||||
cmdline_credentials, tctx->ev, tctx->lp_ctx);
|
||||
|
@ -45,6 +45,10 @@ struct torture_rpc_tcase_data {
|
||||
NTSTATUS torture_rpc_connection(struct torture_context *tctx,
|
||||
struct dcerpc_pipe **p,
|
||||
const struct ndr_interface_table *table);
|
||||
NTSTATUS torture_rpc_connection_with_binding(struct torture_context *tctx,
|
||||
struct dcerpc_binding *binding,
|
||||
struct dcerpc_pipe **p,
|
||||
const struct ndr_interface_table *table);
|
||||
|
||||
struct test_join *torture_join_domain(struct torture_context *tctx,
|
||||
const char *machine_name,
|
||||
|
Loading…
Reference in New Issue
Block a user