diff options
author | Pavel Reichl <preichl@redhat.com> | 2014-07-16 13:33:58 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-08-19 15:46:58 +0200 |
commit | 4c560e7b98e7ab71d22be24d2fbc468396cb634f (patch) | |
tree | 33c2f00e0753cf1a9973b3eecdc1bc1c0c87e3c6 /src/providers/ldap/sdap_async_initgroups.c | |
parent | ff541559e911b91b161f1b8411dd9d8cc60f2a18 (diff) | |
download | sssd-4c560e7b98e7ab71d22be24d2fbc468396cb634f.tar.gz sssd-4c560e7b98e7ab71d22be24d2fbc468396cb634f.tar.xz sssd-4c560e7b98e7ab71d22be24d2fbc468396cb634f.zip |
IPA: new attribute map for non-posix groups
Create new set of attributes to be used when processing non-posix groups.
Resolves:
https://fedorahosted.org/sssd/ticket/2343
Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/providers/ldap/sdap_async_initgroups.c')
-rw-r--r-- | src/providers/ldap/sdap_async_initgroups.c | 12 |
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 2eecdf9a3..ae442ff5c 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; @@ -2592,6 +2594,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; @@ -2616,7 +2619,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; @@ -2951,9 +2955,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; |