diff options
author | Ralph Boehme <slow@samba.org> | 2019-11-04 14:17:43 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-11-27 10:25:33 +0000 |
commit | 00c4d9ec1a67c9ed0a9827a9cb2982b335ab7a9a (patch) | |
tree | dafdc78e8c47da80d6da4913a239e4821fad03f9 /source3/groupdb | |
parent | 4c345289baa1d18abd9975e2079a40b8f38bb384 (diff) | |
download | samba-00c4d9ec1a67c9ed0a9827a9cb2982b335ab7a9a.tar.gz |
smbdotconf: mark "add user to group script" with substitution="1"
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index 634f94dc37e..26b5ad0facb 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -357,16 +357,18 @@ int smb_set_primary_group(const char *unix_group, const char* unix_user) int smb_add_user_group(const char *unix_group, const char *unix_user) { + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); char *add_script = NULL; int ret = -1; /* defer to scripts */ - if ( *lp_add_user_to_group_script(talloc_tos()) ) { + if ( *lp_add_user_to_group_script(talloc_tos(), lp_sub) ) { TALLOC_CTX *ctx = talloc_tos(); add_script = talloc_strdup(ctx, - lp_add_user_to_group_script(ctx)); + lp_add_user_to_group_script(ctx, lp_sub)); if (!add_script) { return -1; } |