]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
idmap_ad: Use idmap_config_const_string
authorVolker Lendecke <vl@samba.org>
Sat, 18 Mar 2017 17:50:38 +0000 (18:50 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 20 Mar 2017 18:36:21 +0000 (19:36 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/winbindd/idmap_ad.c

index 5039e9bfe568762e58cc351f28a60862be3c4938..f1dfeffda1981be17449127717b4455500c3cd17 100644 (file)
@@ -397,10 +397,11 @@ static NTSTATUS idmap_ad_context_create(TALLOC_CTX *mem_ctx,
        ctx->unix_nss_info = lp_parm_bool(
                -1, schema_config_option, "unix_nss_info", false);
 
-       schema_mode = lp_parm_const_string(
-               -1, schema_config_option, "schema_mode", "rfc2307");
        TALLOC_FREE(schema_config_option);
 
+       schema_mode = idmap_config_const_string(
+               domname, "schema_mode", "rfc2307");
+
        rc = get_posix_schema_names(ctx->ld, schema_mode, ctx, &ctx->schema);
        if (!TLDAP_RC_IS_SUCCESS(rc)) {
                DBG_DEBUG("get_posix_schema_names failed: %s\n",