1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

param: rename lp function and variable from "usernamelevel" to "username_level"

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Garming Sam 2014-02-04 15:09:11 +13:00 committed by Jeremy Allison
parent 73bac10cae
commit 7cdcf131e8
4 changed files with 6 additions and 6 deletions

View File

@ -337,7 +337,7 @@ FN_GLOBAL_INTEGER(smb2_max_write, smb2_max_write)
FN_GLOBAL_INTEGER(server_max_protocol, server_max_protocol)
FN_GLOBAL_INTEGER(server_min_protocol, server_min_protocol)
FN_GLOBAL_INTEGER(syslog, syslog)
FN_GLOBAL_INTEGER(usernamelevel, usernamelevel)
FN_GLOBAL_INTEGER(username_level, username_level)
FN_GLOBAL_INTEGER(username_map_cache_time, username_map_cache_time)
FN_GLOBAL_INTEGER(usershare_max_shares, usershare_max_shares)
FN_GLOBAL_INTEGER(web_port, web_port)

View File

@ -665,7 +665,7 @@ static struct parm_struct parm_table[] = {
.label = "username level",
.type = P_INTEGER,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(usernamelevel),
.offset = GLOBAL_VAR(username_level),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_ADVANCED,

View File

@ -96,7 +96,7 @@ char *get_user_home_dir(TALLOC_CTX *mem_ctx, const char *user)
* - as transmitted
* - in all lower case if this differs from transmitted
* - in all upper case if this differs from transmitted
* - using lp_usernamelevel() for permutations.
* - using lp_username_level() for permutations.
****************************************************************************/
static struct passwd *Get_Pwnam_internals(TALLOC_CTX *mem_ctx,
@ -150,9 +150,9 @@ static struct passwd *Get_Pwnam_internals(TALLOC_CTX *mem_ctx,
goto done;
}
DEBUG(5,("Checking combinations of %d uppercase letters in %s\n",
lp_usernamelevel(), user2));
lp_username_level(), user2));
ret = uname_string_combinations(user2, mem_ctx, getpwnam_alloc_cached,
lp_usernamelevel());
lp_username_level());
done:
DEBUG(5,("Get_Pwnam_internals %s find user [%s]!\n",ret ?

View File

@ -813,7 +813,7 @@ static void init_globals(bool reinit_globals)
Globals.lpq_cache_time = 30; /* changed to handle large print servers better -- jerry */
Globals._disable_spoolss = false;
Globals.max_smbd_processes = 0;/* no limit specified */
Globals.usernamelevel = 0;
Globals.username_level = 0;
Globals.deadtime = 0;
Globals.getwd_cache = true;
Globals.large_readwrite = true;