mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
param: rename lp function and variable from "cli_maxprotocol" to "client_max_protocol"
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
4e4dbc9aea
commit
f548585051
@ -277,7 +277,7 @@ FN_GLOBAL_INTEGER(cldap_port, cldap_port)
|
||||
FN_GLOBAL_INTEGER(client_ldap_sasl_wrapping, client_ldap_sasl_wrapping)
|
||||
FN_GLOBAL_INTEGER(client_schannel, client_schannel)
|
||||
FN_GLOBAL_INTEGER(client_signing, client_signing)
|
||||
FN_GLOBAL_INTEGER(cli_maxprotocol, cli_maxprotocol)
|
||||
FN_GLOBAL_INTEGER(client_max_protocol, client_max_protocol)
|
||||
FN_GLOBAL_INTEGER(cli_minprotocol, cli_minprotocol)
|
||||
FN_GLOBAL_INTEGER(config_backend, config_backend)
|
||||
FN_GLOBAL_INTEGER(ctdb_locktime_warn_threshold, ctdb_locktime_warn_threshold)
|
||||
|
@ -1367,7 +1367,7 @@ static struct parm_struct parm_table[] = {
|
||||
.label = "client max protocol",
|
||||
.type = P_ENUM,
|
||||
.p_class = P_GLOBAL,
|
||||
.offset = GLOBAL_VAR(cli_maxprotocol),
|
||||
.offset = GLOBAL_VAR(client_max_protocol),
|
||||
.special = NULL,
|
||||
.enum_list = enum_protocol,
|
||||
.flags = FLAG_ADVANCED,
|
||||
|
@ -5624,7 +5624,7 @@ static int do_message_op(struct user_auth_info *a_info)
|
||||
/* Ensure we have a password (or equivalent). */
|
||||
set_cmdline_auth_info_getpass(auth_info);
|
||||
|
||||
max_protocol = lp_cli_maxprotocol();
|
||||
max_protocol = lp_client_max_protocol();
|
||||
|
||||
if (tar_type) {
|
||||
if (cmdstr)
|
||||
|
@ -111,7 +111,7 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
|
||||
server_name, "IPC$",
|
||||
auth_info,
|
||||
false, false,
|
||||
lp_cli_maxprotocol(),
|
||||
lp_client_max_protocol(),
|
||||
0, 0x20, &cli_ipc);
|
||||
if (NT_STATUS_IS_OK(status)) {
|
||||
cli_set_username(cli_ipc, ctx->username);
|
||||
|
@ -3148,7 +3148,7 @@ static void cli_start_connection_connected(struct tevent_req *subreq)
|
||||
subreq = smbXcli_negprot_send(state, state->ev, state->cli->conn,
|
||||
state->cli->timeout,
|
||||
lp_cli_minprotocol(),
|
||||
lp_cli_maxprotocol());
|
||||
lp_client_max_protocol());
|
||||
if (tevent_req_nomem(subreq, req)) {
|
||||
return;
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ SMBC_server_internal(TALLOC_CTX *ctx,
|
||||
|
||||
status = smbXcli_negprot(c->conn, c->timeout,
|
||||
lp_cli_minprotocol(),
|
||||
lp_cli_maxprotocol());
|
||||
lp_client_max_protocol());
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
cli_shutdown(c);
|
||||
errno = ETIMEDOUT;
|
||||
|
@ -821,7 +821,7 @@ static void init_globals(bool reinit_globals)
|
||||
Globals.max_open_files = max_open_files();
|
||||
Globals.srv_maxprotocol = PROTOCOL_SMB3_00;
|
||||
Globals.srv_minprotocol = PROTOCOL_LANMAN1;
|
||||
Globals.cli_maxprotocol = PROTOCOL_NT1;
|
||||
Globals.client_max_protocol = PROTOCOL_NT1;
|
||||
Globals.cli_minprotocol = PROTOCOL_CORE;
|
||||
Globals._security = SEC_AUTO;
|
||||
Globals.encrypted_passwords = true;
|
||||
|
@ -548,7 +548,7 @@ static void usage(void)
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
max_protocol = lp_cli_maxprotocol();
|
||||
max_protocol = lp_client_max_protocol();
|
||||
|
||||
cli = connect_one(share);
|
||||
if (!cli) {
|
||||
|
@ -906,7 +906,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
|
||||
|
||||
result = smbXcli_negprot((*cli)->conn, (*cli)->timeout,
|
||||
lp_cli_minprotocol(),
|
||||
lp_cli_maxprotocol());
|
||||
lp_client_max_protocol());
|
||||
|
||||
if (!NT_STATUS_IS_OK(result)) {
|
||||
DEBUG(1, ("cli_negprot failed: %s\n", nt_errstr(result)));
|
||||
|
@ -40,7 +40,7 @@ void lpcfg_smbcli_options(struct loadparm_context *lp_ctx,
|
||||
options->signing = lpcfg_client_signing(lp_ctx);
|
||||
options->request_timeout = SMB_REQUEST_TIMEOUT;
|
||||
options->ntstatus_support = lpcfg_nt_status_support(lp_ctx);
|
||||
options->max_protocol = lpcfg_cli_maxprotocol(lp_ctx);
|
||||
options->max_protocol = lpcfg_client_max_protocol(lp_ctx);
|
||||
options->unicode = lpcfg_unicode(lp_ctx);
|
||||
options->use_oplocks = true;
|
||||
options->use_level2_oplocks = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user