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