diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-05-20 17:04:51 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-06-03 11:31:59 +0200 |
commit | 507c00dd01a42087f68d4f34240887fb18a1495d (patch) | |
tree | c45d006f4d31177a6ea49f54a77da638ce0d5de1 | |
parent | b14bb427a2aa7f8806facad5c5d8f6978f1c97a9 (diff) | |
download | sssd-507c00dd01a42087f68d4f34240887fb18a1495d.tar.gz sssd-507c00dd01a42087f68d4f34240887fb18a1495d.tar.xz sssd-507c00dd01a42087f68d4f34240887fb18a1495d.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>
(cherry picked from commit 35d420c5d4609b6e999920e38a9b2ec40a0e1ac4)
-rw-r--r-- | src/providers/ad/ad_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ad/ad_common.c b/src/providers/ad/ad_common.c index 8523fe5b4..4bc07e0b6 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, |