>From f0badde4f80fca1b17d3a3c760aae9866a99e988 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 20 May 2014 17:04:51 +0200 Subject: [PATCH 4/4] AD: Initialize user_map_cnt in server mode user_map_cnt was initialized when all the traditional back ends are initialized. However, for the server mode, we simply copy the defaults and the count was left zeroed, which led to crashes. Down the road, we should consider tying the map and the attribute count together (see ticket #2336) Reviewed-by: Pavel Reichl (cherry picked from commit 35d420c5d4609b6e999920e38a9b2ec40a0e1ac4) --- src/providers/ad/ad_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/providers/ad/ad_common.c b/src/providers/ad/ad_common.c index 8523fe5b49a7434c20c4730aae92eebb62b92397..4bc07e0b6d5aa69b23dad46fc6c0d85a05c26604 100644 --- a/src/providers/ad/ad_common.c +++ b/src/providers/ad/ad_common.c @@ -71,6 +71,7 @@ ad_create_default_sdap_options(TALLOC_CTX *mem_ctx) if (ret != EOK) { goto fail; } + id_opts->user_map_cnt = SDAP_OPTS_USER; /* Group map */ ret = sdap_copy_map(id_opts, -- 1.9.0