diff options
author | Volker Lendecke <vl@samba.org> | 2010-04-09 17:19:13 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-04-13 09:30:06 +0200 |
commit | 5fc2801c09cdfe74253b52b9bf93d7ecad1a98cf (patch) | |
tree | 852ede409120b9e42be52bcfb7cc432a679b6bfa /source3/param | |
parent | c116d80053fc21519836008e2782c06c7313d512 (diff) | |
download | samba-5fc2801c09cdfe74253b52b9bf93d7ecad1a98cf.tar.gz samba-5fc2801c09cdfe74253b52b9bf93d7ecad1a98cf.tar.bz2 samba-5fc2801c09cdfe74253b52b9bf93d7ecad1a98cf.zip |
s3: Cache the username map in gencache
This is for uses with a heavy-weight username map script
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 077fc6355f..350f3c077c 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -181,6 +181,7 @@ struct global { char *szShutdownScript; char *szAbortShutdownScript; char *szUsernameMapScript; + int iUsernameMapCacheTime; char *szCheckPasswordScript; char *szWINSHook; char *szUtmpDir; @@ -3291,6 +3292,15 @@ static struct parm_struct parm_table[] = { .flags = FLAG_ADVANCED, }, { + .label = "username map cache time", + .type = P_INTEGER, + .p_class = P_GLOBAL, + .ptr = &Globals.iUsernameMapCacheTime, + .special = NULL, + .enum_list = NULL, + .flags = FLAG_ADVANCED, + }, + { .label = "logon script", .type = P_STRING, .p_class = P_GLOBAL, @@ -5494,6 +5504,7 @@ FN_GLOBAL_STRING(lp_addmachine_script, &Globals.szAddMachineScript) FN_GLOBAL_STRING(lp_shutdown_script, &Globals.szShutdownScript) FN_GLOBAL_STRING(lp_abort_shutdown_script, &Globals.szAbortShutdownScript) FN_GLOBAL_STRING(lp_username_map_script, &Globals.szUsernameMapScript) +FN_GLOBAL_INTEGER(lp_username_map_cache_time, &Globals.iUsernameMapCacheTime) FN_GLOBAL_STRING(lp_check_password_script, &Globals.szCheckPasswordScript) |