dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0133-cache_req-use-the-right-negative-cache-for-initgroup.patch

ecf709
From 04ef28b7cc49a71209551646b3a82518506f40a6 Mon Sep 17 00:00:00 2001
ecf709
From: Sumit Bose <sbose@redhat.com>
ecf709
Date: Mon, 22 May 2017 14:58:01 +0200
ecf709
Subject: [PATCH 133/135] cache_req: use the right negative cache for
ecf709
 initgroups by upn
ecf709
MIME-Version: 1.0
ecf709
Content-Type: text/plain; charset=UTF-8
ecf709
Content-Transfer-Encoding: 8bit
ecf709
ecf709
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
ecf709
(cherry picked from commit 870b58a6cc6b5cf92a6503c1578e5c21617c8d40)
ecf709
---
ecf709
 src/responder/common/cache_req/plugins/cache_req_initgroups_by_upn.c | 4 ++--
ecf709
 1 file changed, 2 insertions(+), 2 deletions(-)
ecf709
ecf709
diff --git a/src/responder/common/cache_req/plugins/cache_req_initgroups_by_upn.c b/src/responder/common/cache_req/plugins/cache_req_initgroups_by_upn.c
ecf709
index b6fb43ee02d2f041fb3d992b375ae65a02db8b03..dfb21ac1a0090a3ef9029b38f5b1e8bdda3440c6 100644
ecf709
--- a/src/responder/common/cache_req/plugins/cache_req_initgroups_by_upn.c
ecf709
+++ b/src/responder/common/cache_req/plugins/cache_req_initgroups_by_upn.c
ecf709
@@ -66,7 +66,7 @@ cache_req_initgroups_by_upn_ncache_check(struct sss_nc_ctx *ncache,
ecf709
                                          struct sss_domain_info *domain,
ecf709
                                          struct cache_req_data *data)
ecf709
 {
ecf709
-    return sss_ncache_check_user(ncache, domain, data->name.lookup);
ecf709
+    return sss_ncache_check_upn(ncache, domain, data->name.lookup);
ecf709
 }
ecf709
 
ecf709
 static errno_t
ecf709
@@ -74,7 +74,7 @@ cache_req_initgroups_by_upn_ncache_add(struct sss_nc_ctx *ncache,
ecf709
                                        struct sss_domain_info *domain,
ecf709
                                        struct cache_req_data *data)
ecf709
 {
ecf709
-    return sss_ncache_set_user(ncache, false, domain, data->name.lookup);
ecf709
+    return sss_ncache_set_upn(ncache, false, domain, data->name.lookup);
ecf709
 }
ecf709
 
ecf709
 static errno_t
ecf709
-- 
ecf709
2.9.3
ecf709