eabdullin
d0b0fe0ac8
- DP: reduce log level in case a responder asks for unknown domain - ipa: Add `BUILD_PASSKEY` conditional for passkey codepath - LDAP: make groups_by_user_send/recv public - Makefile: Respect `BUILD_PASSKEY` conditional - pam: Conditionalize passkey code - sdap: add set_non_posix parameter - SSS_CLIENT: check if mem-cache fd was hijacked - SSS_CLIENT: check if reponder socket was hijacked - SSS_CLIENT: MC: in case mem-cache file validation fails - sysdb: remove sysdb_computer.[ch]
70 lines
3.5 KiB
Diff
70 lines
3.5 KiB
Diff
From 9b73614c49aeb3cfc3208dba5f472354086180b5 Mon Sep 17 00:00:00 2001
|
|
From: Sumit Bose <sbose@redhat.com>
|
|
Date: Fri, 3 Nov 2023 18:43:13 +0100
|
|
Subject: [PATCH] LDAP: make groups_by_user_send/recv public
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Resolves: https://github.com/SSSD/sssd/issues/5708
|
|
|
|
Reviewed-by: Justin Stephenson <jstephen@redhat.com>
|
|
Reviewed-by: Tomáš Halman <thalman@redhat.com>
|
|
---
|
|
src/providers/ldap/ldap_common.h | 12 ++++++++++++
|
|
src/providers/ldap/ldap_id.c | 18 +++++++++---------
|
|
2 files changed, 21 insertions(+), 9 deletions(-)
|
|
|
|
diff --git a/src/providers/ldap/ldap_common.h b/src/providers/ldap/ldap_common.h
|
|
index 1b35cbd208..6df7b3df44 100644
|
|
--- a/src/providers/ldap/ldap_common.h
|
|
+++ b/src/providers/ldap/ldap_common.h
|
|
@@ -298,6 +298,18 @@ struct tevent_req *groups_get_send(TALLOC_CTX *memctx,
|
|
bool no_members);
|
|
int groups_get_recv(struct tevent_req *req, int *dp_error_out, int *sdap_ret);
|
|
|
|
+struct tevent_req *groups_by_user_send(TALLOC_CTX *memctx,
|
|
+ struct tevent_context *ev,
|
|
+ struct sdap_id_ctx *ctx,
|
|
+ struct sdap_domain *sdom,
|
|
+ struct sdap_id_conn_ctx *conn,
|
|
+ const char *filter_value,
|
|
+ int filter_type,
|
|
+ const char *extra_value,
|
|
+ bool noexist_delete);
|
|
+
|
|
+int groups_by_user_recv(struct tevent_req *req, int *dp_error_out, int *sdap_ret);
|
|
+
|
|
struct tevent_req *ldap_netgroup_get_send(TALLOC_CTX *memctx,
|
|
struct tevent_context *ev,
|
|
struct sdap_id_ctx *ctx,
|
|
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c
|
|
index a60aed0686..fb81a17937 100644
|
|
--- a/src/providers/ldap/ldap_id.c
|
|
+++ b/src/providers/ldap/ldap_id.c
|
|
@@ -1151,15 +1151,15 @@ static int groups_by_user_retry(struct tevent_req *req);
|
|
static void groups_by_user_connect_done(struct tevent_req *subreq);
|
|
static void groups_by_user_done(struct tevent_req *subreq);
|
|
|
|
-static struct tevent_req *groups_by_user_send(TALLOC_CTX *memctx,
|
|
- struct tevent_context *ev,
|
|
- struct sdap_id_ctx *ctx,
|
|
- struct sdap_domain *sdom,
|
|
- struct sdap_id_conn_ctx *conn,
|
|
- const char *filter_value,
|
|
- int filter_type,
|
|
- const char *extra_value,
|
|
- bool noexist_delete)
|
|
+struct tevent_req *groups_by_user_send(TALLOC_CTX *memctx,
|
|
+ struct tevent_context *ev,
|
|
+ struct sdap_id_ctx *ctx,
|
|
+ struct sdap_domain *sdom,
|
|
+ struct sdap_id_conn_ctx *conn,
|
|
+ const char *filter_value,
|
|
+ int filter_type,
|
|
+ const char *extra_value,
|
|
+ bool noexist_delete)
|
|
{
|
|
struct tevent_req *req;
|
|
struct groups_by_user_state *state;
|