summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2014-01-08 10:51:03 +1300
committerAndrew Bartlett <abartlet@samba.org>2014-01-28 17:26:44 +1300
commit44795c67d1ee359d3ed559da93e6cbd6cf727337 (patch)
tree8e2c2102615c3def99186dd76d795884695af4c4 /lib
parent8fbe9269c92e7a5819a241ebb6bd8f2c8890f8a6 (diff)
downloadsamba-44795c67d1ee359d3ed559da93e6cbd6cf727337.tar.gz
samba-44795c67d1ee359d3ed559da93e6cbd6cf727337.tar.xz
samba-44795c67d1ee359d3ed559da93e6cbd6cf727337.zip
lib/param: add default for guest account
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/param/loadparm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index 6d49b5c035..35881a7cf1 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -2288,6 +2288,8 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
lpcfg_do_global_parameter(lp_ctx, "passwd chat timeout", "2");
+ lpcfg_do_global_parameter(lp_ctx, "guest account", GUEST_ACCOUNT);
+
for (i = 0; parm_table[i].label; i++) {
if (!(lp_ctx->flags[i] & FLAG_CMDLINE)) {
lp_ctx->flags[i] |= FLAG_DEFAULT;