int smb_set_primary_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_set_primary_group_script(talloc_tos()) ) {
+ if ( *lp_set_primary_group_script(talloc_tos(), lp_sub) ) {
TALLOC_CTX *ctx = talloc_tos();
add_script = talloc_strdup(ctx,
- lp_set_primary_group_script(ctx));
+ lp_set_primary_group_script(ctx, lp_sub));
if (!add_script) {
return -1;
}