summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_initgroups.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ldap/sdap_async_initgroups.c')
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 712811f83..f9004ee7e 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -706,6 +706,7 @@ struct sdap_initgr_nested_state {
const char *orig_dn;
const char **grp_attrs;
+ const char **np_grp_attrs;
struct ldb_message_element *memberof;
char *filter;
@@ -729,7 +730,8 @@ static struct tevent_req *sdap_initgr_nested_send(TALLOC_CTX *memctx,
struct sss_domain_info *dom,
struct sdap_handle *sh,
struct sysdb_attrs *user,
- const char **grp_attrs)
+ const char **grp_attrs,
+ const char **np_grp_attrs)
{
struct tevent_req *req;
struct sdap_initgr_nested_state *state;
@@ -2606,6 +2608,7 @@ struct sdap_get_initgr_state {
struct sdap_id_conn_ctx *conn;
const char *name;
const char **grp_attrs;
+ const char **np_grp_attrs;
const char **user_attrs;
char *user_base_filter;
char *filter;
@@ -2630,7 +2633,8 @@ struct tevent_req *sdap_get_initgr_send(TALLOC_CTX *memctx,
struct sdap_id_ctx *id_ctx,
struct sdap_id_conn_ctx *conn,
const char *name,
- const char **grp_attrs)
+ const char **grp_attrs,
+ const char **np_grp_attrs)
{
struct tevent_req *req;
struct sdap_get_initgr_state *state;
@@ -2968,9 +2972,11 @@ static void sdap_get_initgr_user(struct tevent_req *subreq)
break;
case SDAP_SCHEMA_IPA_V1:
+
subreq = sdap_initgr_nested_send(state, state->ev, state->opts,
state->sysdb, state->dom, state->sh,
- state->orig_user, state->grp_attrs);
+ state->orig_user, state->grp_attrs,
+ state->np_grp_attrs);
if (!subreq) {
tevent_req_error(req, ENOMEM);
return;