From 35d420c5d4609b6e999920e38a9b2ec40a0e1ac4 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 20 May 2014 17:04:51 +0200 Subject: 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 --- 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 2607e766d..67ded36ed 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, -- cgit