1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3:torture: create a global 'torture_creds' cli_credentials structure

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-10-28 12:43:44 +02:00 committed by Andreas Schneider
parent 2aaf3c5ea5
commit 23c5fa1adf

View File

@ -48,6 +48,7 @@ extern char *optarg;
extern int optind;
fstring host, workgroup, share, password, username, myname;
struct cli_credentials *torture_creds;
static const char *sockops="TCP_NODELAY";
int torture_nprocs=1;
static int port_to_use=0;
@ -10793,6 +10794,20 @@ static void usage(void)
printf("host=%s share=%s user=%s myname=%s\n",
host, share, username, myname);
torture_creds = cli_session_creds_init(frame,
username,
workgroup,
NULL, /* realm */
password,
use_kerberos,
false, /* fallback_after_kerberos */
false, /* use_ccache */
false); /* password_is_nt_hash */
if (torture_creds == NULL) {
d_printf("cli_session_creds_init() failed.\n");
exit(1);
}
if (argc == optind) {
correct = run_test("ALL");
} else {