From 9aa117a93e315f790a1922d9ac7bd484878b621e Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 23 May 2013 01:15:02 +0200 Subject: LDAP: Pass in a connection to ID functions Instead of using the default connection from the sdap_id_ctx, allow the caller to specify which connection shall be used for this particular request. Again, no functional change is present in this patch, just another parameter is added. --- src/providers/ldap/sdap_async_initgroups.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/providers/ldap/sdap_async_initgroups.c') diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c index 5a6ba028..57193f71 100644 --- a/src/providers/ldap/sdap_async_initgroups.c +++ b/src/providers/ldap/sdap_async_initgroups.c @@ -2510,6 +2510,7 @@ struct sdap_get_initgr_state { struct sss_domain_info *dom; struct sdap_handle *sh; struct sdap_id_ctx *id_ctx; + struct sdap_id_conn_ctx *conn; const char *name; const char **grp_attrs; const char **user_attrs; @@ -2531,6 +2532,7 @@ struct tevent_req *sdap_get_initgr_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sdap_handle *sh, struct sdap_id_ctx *id_ctx, + struct sdap_id_conn_ctx *conn, const char *name, const char **grp_attrs) { @@ -2550,6 +2552,7 @@ struct tevent_req *sdap_get_initgr_send(TALLOC_CTX *memctx, state->dom = id_ctx->be->domain; state->sh = sh; state->id_ctx = id_ctx; + state->conn = conn; state->name = name; state->grp_attrs = grp_attrs; state->orig_user = NULL; @@ -2947,7 +2950,7 @@ static void sdap_get_initgr_done(struct tevent_req *subreq) goto fail; } - subreq = groups_get_send(req, state->ev, state->id_ctx, gid, + subreq = groups_get_send(req, state->ev, state->id_ctx, state->conn, gid, BE_FILTER_IDNUM, BE_ATTR_ALL); if (!subreq) { ret = ENOMEM; -- cgit