summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-05-20 17:04:51 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-22 17:11:21 +0200
commit35d420c5d4609b6e999920e38a9b2ec40a0e1ac4 (patch)
tree7afebb23075a6535e46633a7bcf969f0ffeb0331
parent58092eb1acfefefef9148789062aa9114e00372e (diff)
downloadsssd-35d420c5d4609b6e999920e38a9b2ec40a0e1ac4.tar.gz
sssd-35d420c5d4609b6e999920e38a9b2ec40a0e1ac4.tar.xz
sssd-35d420c5d4609b6e999920e38a9b2ec40a0e1ac4.zip
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 <preichl@redhat.com>
-rw-r--r--src/providers/ad/ad_common.c1
1 files changed, 1 insertions, 0 deletions
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,