summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs-xml/smbdotconf/logon/deletegroupscript.xml3
-rw-r--r--source3/groupdb/mapping.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/docs-xml/smbdotconf/logon/deletegroupscript.xml b/docs-xml/smbdotconf/logon/deletegroupscript.xml
index cad0c2a8665..be8bb0d9227 100644
--- a/docs-xml/smbdotconf/logon/deletegroupscript.xml
+++ b/docs-xml/smbdotconf/logon/deletegroupscript.xml
@@ -1,6 +1,7 @@
<samba:parameter name="delete group script"
context="G"
- type="string"
+ type="string"
+ substitution="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This is the full pathname to a script that will
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index 26b5ad0facb..ed1d5716956 100644
--- a/source3/groupdb/mapping.c
+++ b/source3/groupdb/mapping.c
@@ -280,16 +280,18 @@ int smb_create_group(const char *unix_group, gid_t *new_gid)
int smb_delete_group(const char *unix_group)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
char *del_script = NULL;
int ret = -1;
/* defer to scripts */
- if ( *lp_delete_group_script(talloc_tos()) ) {
+ if ( *lp_delete_group_script(talloc_tos(), lp_sub) ) {
TALLOC_CTX *ctx = talloc_tos();
del_script = talloc_strdup(ctx,
- lp_delete_group_script(ctx));
+ lp_delete_group_script(ctx, lp_sub));
if (!del_script) {
return -1;
}