diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-23 01:15:02 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-07 00:14:13 +0200 |
commit | 9aa117a93e315f790a1922d9ac7bd484878b621e (patch) | |
tree | 2ca931d7bc7a1a74d0f94033399578240dd8d387 /src/providers/ldap/sdap_async_initgroups.c | |
parent | e6e129a40e69af52a12deed91f68fff3569c51ce (diff) | |
download | sssd-9aa117a93e315f790a1922d9ac7bd484878b621e.tar.gz sssd-9aa117a93e315f790a1922d9ac7bd484878b621e.tar.bz2 sssd-9aa117a93e315f790a1922d9ac7bd484878b621e.zip |
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.
Diffstat (limited to 'src/providers/ldap/sdap_async_initgroups.c')
-rw-r--r-- | src/providers/ldap/sdap_async_initgroups.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |