1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

Fix -e for smbcquotas.

Jeremy.
(This used to be commit f97b1247c1053f47aef64be95ab9b3c3d8702c8a)
This commit is contained in:
Jeremy Allison 2008-01-05 00:50:03 -08:00
parent 722d288d21
commit a41972e801

View File

@ -380,20 +380,33 @@ static struct cli_state *connect_one(const char *share)
}
}
if (NT_STATUS_IS_OK(nt_status = cli_full_connection(&c, global_myname(), server,
&ss, 0,
share, "?????",
get_cmdline_auth_info_username(),
lp_workgroup(),
get_cmdline_auth_info_password(),
0,
get_cmdline_auth_info_signing_state(),
NULL))) {
return c;
} else {
nt_status = cli_full_connection(&c, global_myname(), server,
&ss, 0,
share, "?????",
get_cmdline_auth_info_username(),
lp_workgroup(),
get_cmdline_auth_info_password(),
0,
get_cmdline_auth_info_signing_state(),
NULL);
if (!NT_STATUS_IS_OK(nt_status)) {
DEBUG(0,("cli_full_connection failed! (%s)\n", nt_errstr(nt_status)));
return NULL;
}
if (get_cmdline_auth_info_smb_encrypt()) {
nt_status = cli_cm_force_encryption(c,
get_cmdline_auth_info_username(),
get_cmdline_auth_info_password(),
lp_workgroup(),
share);
if (!NT_STATUS_IS_OK(nt_status)) {
cli_shutdown(c);
return NULL;
}
}
return c;
}
/****************************************************************************