dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

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

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