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