Skip to content

Commit

Permalink
LDAP: make groups_by_user_send/recv public
Browse files Browse the repository at this point in the history
Resolves: SSSD#5708
  • Loading branch information
sumit-bose committed Dec 22, 2023
1 parent d6940c6 commit 5a49bdf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
12 changes: 12 additions & 0 deletions src/providers/ldap/ldap_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
18 changes: 9 additions & 9 deletions src/providers/ldap/ldap_id.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5a49bdf

Please sign in to comment.