From 2e4f8db631a10224dac20e8a472f751fef0e3fcd Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 3 May 2013 10:00:37 -0400 Subject: AD: Always initialize ID mapping Because we now always store SIDs in the LDAP provider, we also need to always initialize the ID mapping context even if ID mapping itself is off. --- src/providers/ad/ad_init.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index 7ebe2a0e..2f5a5da1 100644 --- a/src/providers/ad/ad_init.c +++ b/src/providers/ad/ad_init.c @@ -161,11 +161,9 @@ sssm_ad_id_init(struct be_ctx *bectx, goto done; } - if (dp_opt_get_bool(sdap_ctx->opts->basic, SDAP_ID_MAPPING)) { - /* Set up the ID mapping object */ - ret = sdap_idmap_init(sdap_ctx, sdap_ctx, &sdap_ctx->opts->idmap_ctx); - if (ret != EOK) goto done; - } + /* Set up the ID mapping object */ + ret = sdap_idmap_init(sdap_ctx, sdap_ctx, &sdap_ctx->opts->idmap_ctx); + if (ret != EOK) goto done; ret = ad_dyndns_init(sdap_ctx->be, ad_options); if (ret != EOK) { -- cgit