summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-07 15:17:01 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:05 +0200
commitf2fb829cee81996c62ff91cb8d1e9997008ffb42 (patch)
tree254401fb4d63aab352d3663c802249f234448cb6
parent7080917a87af578f451dfc840ed9d1e47a8a865b (diff)
downloadsamba-f2fb829cee81996c62ff91cb8d1e9997008ffb42.tar.gz
samba-f2fb829cee81996c62ff91cb8d1e9997008ffb42.tar.bz2
samba-f2fb829cee81996c62ff91cb8d1e9997008ffb42.zip
s3:param: Correctly set up cli_maxprotocol, cli_minprotocol in our parameter block.
Set to PROTOCOL_NT1, PROTOCOL_CORE by default. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9829 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/param/loadparm.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 13b1350624..01e57275b7 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1188,6 +1188,8 @@ int lp_deadtime(void);
bool lp_getwd_cache(void);
int lp_srv_maxprotocol(void);
int lp_srv_minprotocol(void);
+int lp_cli_maxprotocol(void);
+int lp_cli_minprotocol(void);
int lp_security(void);
int lp__server_role(void);
int lp__security(void);
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index fa2f9b66e4..229ebd8bd1 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -828,6 +828,8 @@ static void init_globals(bool reinit_globals)
Globals.open_files_db_hash_size = SMB_OPEN_DATABASE_TDB_HASH_SIZE;
Globals.srv_maxprotocol = PROTOCOL_SMB3_00;
Globals.srv_minprotocol = PROTOCOL_LANMAN1;
+ Globals.cli_maxprotocol = PROTOCOL_NT1;
+ Globals.cli_minprotocol = PROTOCOL_CORE;
Globals.security = SEC_USER;
Globals.bEncryptPasswords = true;
Globals.clientSchannel = Auto;