mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
param: rename lp function and variable from "adduser_script" to "add_user_script"
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:
parent
8feac80395
commit
216d969180
@ -372,7 +372,7 @@ FN_GLOBAL_STRING(add_machine_script, add_machine_script)
|
||||
FN_GLOBAL_STRING(addport_cmd, addport_cmd)
|
||||
FN_GLOBAL_STRING(addprinter_cmd, addprinter_cmd)
|
||||
FN_GLOBAL_STRING(add_share_cmd, add_share_cmd)
|
||||
FN_GLOBAL_STRING(adduser_script, adduser_script)
|
||||
FN_GLOBAL_STRING(add_user_script, add_user_script)
|
||||
FN_GLOBAL_STRING(addusertogroup_script, addusertogroup_script)
|
||||
FN_GLOBAL_STRING(auto_services, auto_services)
|
||||
FN_GLOBAL_STRING(change_share_cmd, change_share_cmd)
|
||||
|
@ -2593,7 +2593,7 @@ static struct parm_struct parm_table[] = {
|
||||
.label = "add user script",
|
||||
.type = P_STRING,
|
||||
.p_class = P_GLOBAL,
|
||||
.offset = GLOBAL_VAR(adduser_script),
|
||||
.offset = GLOBAL_VAR(add_user_script),
|
||||
.special = NULL,
|
||||
.enum_list = NULL,
|
||||
.flags = FLAG_ADVANCED,
|
||||
|
@ -48,7 +48,7 @@ static int _smb_create_user(const char *domain, const char *unix_username, const
|
||||
char *add_script;
|
||||
int ret;
|
||||
|
||||
add_script = lp_adduser_script(ctx);
|
||||
add_script = lp_add_user_script(ctx);
|
||||
if (!add_script || !*add_script) {
|
||||
return -1;
|
||||
}
|
||||
|
@ -670,7 +670,7 @@ static NTSTATUS smb_create_user(TALLOC_CTX *mem_ctx,
|
||||
|
||||
/* Create appropriate user */
|
||||
if (acct_flags & ACB_NORMAL) {
|
||||
add_script = lp_adduser_script(mem_ctx);
|
||||
add_script = lp_add_user_script(mem_ctx);
|
||||
} else if ( (acct_flags & ACB_WSTRUST) ||
|
||||
(acct_flags & ACB_SVRTRUST) ||
|
||||
(acct_flags & ACB_DOMTRUST) ) {
|
||||
|
@ -250,7 +250,7 @@ static NTSTATUS smb_create_user(TALLOC_CTX *mem_ctx,
|
||||
|
||||
/* Create appropriate user */
|
||||
if (acct_flags & ACB_NORMAL) {
|
||||
add_script = lp_adduser_script(mem_ctx);
|
||||
add_script = lp_add_user_script(mem_ctx);
|
||||
} else if ( (acct_flags & ACB_WSTRUST) ||
|
||||
(acct_flags & ACB_SVRTRUST) ||
|
||||
(acct_flags & ACB_DOMTRUST) ) {
|
||||
|
@ -459,7 +459,7 @@ static NTSTATUS pdb_default_create_user(struct pdb_methods *methods,
|
||||
fstring name2;
|
||||
|
||||
if ((acb_info & ACB_NORMAL) && name[strlen(name)-1] != '$') {
|
||||
add_script = lp_adduser_script(tmp_ctx);
|
||||
add_script = lp_add_user_script(tmp_ctx);
|
||||
} else {
|
||||
add_script = lp_add_machine_script(tmp_ctx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user