diff options
author | Ralph Boehme <slow@samba.org> | 2019-11-04 17:35:22 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-11-27 10:25:34 +0000 |
commit | 1377e66edfc1c6cdd40417a0b3b986bc106b6a3f (patch) | |
tree | 19ceaab0e5ef30db1a6b10ae1b0295632adc2030 /source3/passdb | |
parent | 7547d837ec62c0e019122d503097ffe6d080a3ca (diff) | |
download | samba-1377e66edfc1c6cdd40417a0b3b986bc106b6a3f.tar.gz |
smbdotconf: mark "delete user script" with substitution="1"
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index 71d2a753a5e..03aa4ff8472 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -551,6 +551,8 @@ NTSTATUS pdb_create_user(TALLOC_CTX *mem_ctx, const char *name, uint32_t flags, static int smb_delete_user(const char *unix_user) { + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); char *del_script = NULL; int ret; @@ -561,7 +563,7 @@ static int smb_delete_user(const char *unix_user) return -1; } - del_script = lp_delete_user_script(talloc_tos()); + del_script = lp_delete_user_script(talloc_tos(), lp_sub); if (!del_script || !*del_script) { return -1; } |