From: Volker Lendecke Date: Sat, 18 Mar 2017 17:59:06 +0000 (+0100) Subject: idmap_ad: Use idmap_config_bool X-Git-Tag: tdb-1.3.13~419 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6b04b6bd7960f186cff345398d91ff73303eccd;p=thirdparty%2Fsamba.git idmap_ad: Use idmap_config_bool Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- diff --git a/source3/winbindd/idmap_ad.c b/source3/winbindd/idmap_ad.c index f1dfeffda19..1dbc3e46784 100644 --- a/source3/winbindd/idmap_ad.c +++ b/source3/winbindd/idmap_ad.c @@ -357,7 +357,6 @@ static NTSTATUS idmap_ad_context_create(TALLOC_CTX *mem_ctx, struct idmap_ad_context **pctx) { struct idmap_ad_context *ctx; - char *schema_config_option; const char *schema_mode; NTSTATUS status; TLDAPRC rc; @@ -385,19 +384,10 @@ static NTSTATUS idmap_ad_context_create(TALLOC_CTX *mem_ctx, return status; } - schema_config_option = talloc_asprintf( - ctx, "idmap config %s", domname); - if (schema_config_option == NULL) { - TALLOC_FREE(ctx); - return NT_STATUS_NO_MEMORY; - } - - ctx->unix_primary_group = lp_parm_bool( - -1, schema_config_option, "unix_primary_group", false); - ctx->unix_nss_info = lp_parm_bool( - -1, schema_config_option, "unix_nss_info", false); - - TALLOC_FREE(schema_config_option); + ctx->unix_primary_group = idmap_config_bool( + domname, "unix_primary_group", false); + ctx->unix_nss_info = idmap_config_bool( + domname, "unix_nss_info", false); schema_mode = idmap_config_const_string( domname, "schema_mode", "rfc2307");