diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-01-08 10:51:03 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-01-28 17:26:44 +1300 |
commit | 44795c67d1ee359d3ed559da93e6cbd6cf727337 (patch) | |
tree | 8e2c2102615c3def99186dd76d795884695af4c4 /lib | |
parent | 8fbe9269c92e7a5819a241ebb6bd8f2c8890f8a6 (diff) | |
download | samba-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.c | 2 |
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; |