diff options
author | Volker Lendecke <vl@samba.org> | 2017-01-07 14:55:41 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2017-03-20 19:36:21 +0100 |
commit | e78d78a1ff5b1d759b0fcfdc9dfd27461ec55706 (patch) | |
tree | c4f8d5b3cb4edc5cfe4535c5d42e10f8c741ed82 /source3/winbindd/idmap_script.c | |
parent | 925335a5d443bbcb2f678095b7c3ea74f6617ff3 (diff) | |
download | samba-e78d78a1ff5b1d759b0fcfdc9dfd27461ec55706.tar.gz |
winbind: Use idmap_config_const_string in idmap_script_db_init
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/winbindd/idmap_script.c')
-rw-r--r-- | source3/winbindd/idmap_script.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/winbindd/idmap_script.c b/source3/winbindd/idmap_script.c index 75eabdf1c00..4faf2d593b6 100644 --- a/source3/winbindd/idmap_script.c +++ b/source3/winbindd/idmap_script.c @@ -582,7 +582,6 @@ static NTSTATUS idmap_script_db_init(struct idmap_domain *dom) { NTSTATUS ret; struct idmap_script_context *ctx; - char *config_option = NULL; const char * idmap_script = NULL; DEBUG(10, ("%s called ...\n", __func__)); @@ -594,14 +593,7 @@ static NTSTATUS idmap_script_db_init(struct idmap_domain *dom) goto failed; } - config_option = talloc_asprintf(ctx, "idmap config %s", dom->name); - if (config_option == NULL) { - DEBUG(0, ("Out of memory!\n")); - ret = NT_STATUS_NO_MEMORY; - goto failed; - } - ctx->script = lp_parm_const_string(-1, config_option, "script", NULL); - talloc_free(config_option); + ctx->script = idmap_config_const_string(dom->name, "script", NULL); /* Do we even need to handle this? */ idmap_script = lp_parm_const_string(-1, "idmap", "script", NULL); |