smb_complete_connection(struct cli_state **output_cli,
const char *myname,
const char *server,
- int port,
+ const struct smb_transports *transports,
const char *username,
const char *password,
const char *workgroup,
struct cli_state *cli; /* New connection */
NTSTATUS nt_status;
struct cli_credentials *creds = NULL;
- struct smb_transports ts = smbsock_transports_from_port(port);
/* Start the SMB connection */
nt_status = cli_start_connection(talloc_tos(),
myname,
server,
NULL,
- &ts,
+ transports,
SMB_SIGNING_DEFAULT,
0);
if (!NT_STATUS_IS_OK(nt_status)) {
bool fallback_after_kerberos = false;
const char *user = username;
NTSTATUS nt_status;
+ struct smb_transports ts = smbsock_transports_from_port(port);
/*
* Get the names and addresses of the client and server...
nt_status = smb_complete_connection(&cli,
myname,
server,
- port,
+ &ts,
user,
password,
workgroup,
nt_status = smb_complete_connection(&cli,
myname,
server,
- port,
+ &ts,
pwd->pw_name,
"",
workgroup,
nt_status = smb_complete_connection(&cli,
myname,
server,
- port,
+ &ts,
"",
"",
workgroup,