summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-30 01:29:53 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-30 01:29:53 +0200
commitc8a19f0b8373bec27f4d3638bb731963896f3ff5 (patch)
tree468bb95a6325a34fe0d7fc4129c3c506f4c72146 /source4/param
parent21df9532f54ad15c308630672f3b8a6dc4ce6294 (diff)
downloadsamba-c8a19f0b8373bec27f4d3638bb731963896f3ff5.tar.gz
samba-c8a19f0b8373bec27f4d3638bb731963896f3ff5.tar.bz2
samba-c8a19f0b8373bec27f4d3638bb731963896f3ff5.zip
Pass options struct into session initialization functions rather than
using global_loadparm.
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/loadparm.c8
-rw-r--r--source4/param/param.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 15edbd1f89..0042dbd876 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2629,3 +2629,11 @@ void lp_smbcli_options(struct loadparm_context *lp_ctx,
options->use_oplocks = true;
options->use_level2_oplocks = true;
}
+
+void lp_smbcli_session_options(struct loadparm_context *lp_ctx,
+ struct smbcli_session_options *options)
+{
+ options->lanman_auth = lp_client_lanman_auth(lp_ctx);
+ options->ntlmv2_auth = lp_client_ntlmv2_auth(lp_ctx);
+ options->plaintext_auth = lp_client_plaintext_auth(lp_ctx);
+}
diff --git a/source4/param/param.h b/source4/param/param.h
index 4ed2654692..4c6e8b79a2 100644
--- a/source4/param/param.h
+++ b/source4/param/param.h
@@ -60,6 +60,7 @@ enum announce_as {/* Types of machine we can announce as. */
struct loadparm_context;
struct loadparm_service;
struct smbcli_options;
+struct smbcli_session_options;
void reload_charcnv(struct loadparm_context *lp_ctx);
@@ -318,6 +319,8 @@ int lp_maxprintjobs(struct loadparm_service *service, struct loadparm_service *s
struct smb_iconv_convenience *lp_iconv_convenience(struct loadparm_context *lp_ctx);
void lp_smbcli_options(struct loadparm_context *lp_ctx,
struct smbcli_options *options);
+void lp_smbcli_session_options(struct loadparm_context *lp_ctx,
+ struct smbcli_session_options *options);
/* The following definitions come from param/generic.c */