mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s4-smbtorture: add rap_get_servername to RPC-SAMBA3 family of tests.
Guenther
This commit is contained in:
parent
7d89c7c17b
commit
5e87e8576c
@ -2567,6 +2567,24 @@ static NTSTATUS get_servername(TALLOC_CTX *mem_ctx, struct smbcli_tree *tree,
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
static bool rap_get_servername(struct torture_context *tctx,
|
||||
char **servername)
|
||||
{
|
||||
struct smbcli_state *cli;
|
||||
|
||||
torture_assert(tctx,
|
||||
torture_open_connection_share(tctx, &cli, tctx, torture_setting_string(tctx, "host", NULL),
|
||||
"IPC$", tctx->ev),
|
||||
"IPC$ connection failed");
|
||||
|
||||
torture_assert_ntstatus_ok(tctx,
|
||||
get_servername(tctx, cli->tree, lp_iconv_convenience(tctx->lp_ctx), servername),
|
||||
"get_servername failed");
|
||||
|
||||
talloc_free(cli);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static NTSTATUS find_printers(TALLOC_CTX *ctx, struct loadparm_context *lp_ctx,
|
||||
struct smbcli_tree *tree,
|
||||
|
Loading…
x
Reference in New Issue
Block a user