From e32a5bd6fa76c7146a7024d42efeb26895337048 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose@redhat.com>
Date: Wed, 8 Nov 2017 14:04:40 +0100
Subject: [PATCH 54/57] sysdb: be_refresh_get_values_ex() remove unused option
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The objectclass argument is not used in be_refresh_get_values_ex()
anymore.
Related to https://pagure.io/SSSD/sssd/issue/3503
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
(cherry picked from commit 0cce3d3ad14caf406303cf2ce6bf80171b708a93)
---
src/providers/be_refresh.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/providers/be_refresh.c b/src/providers/be_refresh.c
index 81f2c5d1d368987bf9135fce730d917a32c1e24f..e8cf5da75847cd6ab647e91865b36ec6e4e59822 100644
--- a/src/providers/be_refresh.c
+++ b/src/providers/be_refresh.c
@@ -32,7 +32,6 @@
static errno_t be_refresh_get_values_ex(TALLOC_CTX *mem_ctx,
struct sss_domain_info *domain,
time_t period,
- const char *objectclass,
struct ldb_dn *base_dn,
const char *attr,
char ***_values)
@@ -96,21 +95,17 @@ static errno_t be_refresh_get_values(TALLOC_CTX *mem_ctx,
char ***_values)
{
struct ldb_dn *base_dn = NULL;
- const char *class = NULL;
errno_t ret;
switch (type) {
case BE_REFRESH_TYPE_USERS:
base_dn = sysdb_user_base_dn(mem_ctx, domain);
- class = SYSDB_USER_CLASS;
break;
case BE_REFRESH_TYPE_GROUPS:
base_dn = sysdb_group_base_dn(mem_ctx, domain);
- class = SYSDB_GROUP_CLASS;
break;
case BE_REFRESH_TYPE_NETGROUPS:
base_dn = sysdb_netgroup_base_dn(mem_ctx, domain);
- class = SYSDB_NETGROUP_CLASS;
break;
case BE_REFRESH_TYPE_SENTINEL:
return ERR_INTERNAL;
@@ -121,7 +116,7 @@ static errno_t be_refresh_get_values(TALLOC_CTX *mem_ctx,
return ENOMEM;
}
- ret = be_refresh_get_values_ex(mem_ctx, domain, period, class,
+ ret = be_refresh_get_values_ex(mem_ctx, domain, period,
base_dn, SYSDB_NAME, _values);
talloc_free(base_dn);
--
2.14.3