mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +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:
committed by
Jeremy Allison
parent
73bac10cae
commit
7cdcf131e8
@ -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_max_protocol, server_max_protocol)
|
||||||
FN_GLOBAL_INTEGER(server_min_protocol, server_min_protocol)
|
FN_GLOBAL_INTEGER(server_min_protocol, server_min_protocol)
|
||||||
FN_GLOBAL_INTEGER(syslog, syslog)
|
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(username_map_cache_time, username_map_cache_time)
|
||||||
FN_GLOBAL_INTEGER(usershare_max_shares, usershare_max_shares)
|
FN_GLOBAL_INTEGER(usershare_max_shares, usershare_max_shares)
|
||||||
FN_GLOBAL_INTEGER(web_port, web_port)
|
FN_GLOBAL_INTEGER(web_port, web_port)
|
||||||
|
@ -665,7 +665,7 @@ static struct parm_struct parm_table[] = {
|
|||||||
.label = "username level",
|
.label = "username level",
|
||||||
.type = P_INTEGER,
|
.type = P_INTEGER,
|
||||||
.p_class = P_GLOBAL,
|
.p_class = P_GLOBAL,
|
||||||
.offset = GLOBAL_VAR(usernamelevel),
|
.offset = GLOBAL_VAR(username_level),
|
||||||
.special = NULL,
|
.special = NULL,
|
||||||
.enum_list = NULL,
|
.enum_list = NULL,
|
||||||
.flags = FLAG_ADVANCED,
|
.flags = FLAG_ADVANCED,
|
||||||
|
@ -96,7 +96,7 @@ char *get_user_home_dir(TALLOC_CTX *mem_ctx, const char *user)
|
|||||||
* - as transmitted
|
* - as transmitted
|
||||||
* - in all lower case if this differs from transmitted
|
* - in all lower case if this differs from transmitted
|
||||||
* - in all upper 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,
|
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;
|
goto done;
|
||||||
}
|
}
|
||||||
DEBUG(5,("Checking combinations of %d uppercase letters in %s\n",
|
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,
|
ret = uname_string_combinations(user2, mem_ctx, getpwnam_alloc_cached,
|
||||||
lp_usernamelevel());
|
lp_username_level());
|
||||||
|
|
||||||
done:
|
done:
|
||||||
DEBUG(5,("Get_Pwnam_internals %s find user [%s]!\n",ret ?
|
DEBUG(5,("Get_Pwnam_internals %s find user [%s]!\n",ret ?
|
||||||
|
@ -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.lpq_cache_time = 30; /* changed to handle large print servers better -- jerry */
|
||||||
Globals._disable_spoolss = false;
|
Globals._disable_spoolss = false;
|
||||||
Globals.max_smbd_processes = 0;/* no limit specified */
|
Globals.max_smbd_processes = 0;/* no limit specified */
|
||||||
Globals.usernamelevel = 0;
|
Globals.username_level = 0;
|
||||||
Globals.deadtime = 0;
|
Globals.deadtime = 0;
|
||||||
Globals.getwd_cache = true;
|
Globals.getwd_cache = true;
|
||||||
Globals.large_readwrite = true;
|
Globals.large_readwrite = true;
|
||||||
|
Reference in New Issue
Block a user