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/ldap_id.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/ldap_id.c')
-rw-r--r-- | src/providers/ldap/ldap_id.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c index c788b6bdd..e164cde4c 100644 --- a/src/providers/ldap/ldap_id.c +++ b/src/providers/ldap/ldap_id.c @@ -919,6 +919,7 @@ struct groups_by_user_state { const char *name; const char **attrs; + const char **np_attrs; int dp_error; int sdap_ret; @@ -966,6 +967,10 @@ static struct tevent_req *groups_by_user_send(TALLOC_CTX *memctx, NULL, &state->attrs, NULL); if (ret != EOK) goto fail; + ret = build_attrs_from_map(state, ctx->opts->np_group_map, SDAP_OPTS_NP_GROUP, + NULL, &state->np_attrs, NULL); + if (ret != EOK) goto fail; + ret = groups_by_user_retry(req); if (ret != EOK) { goto fail; @@ -1020,7 +1025,8 @@ static void groups_by_user_connect_done(struct tevent_req *subreq) state->ctx, state->conn, state->name, - state->attrs); + state->attrs, + state->np_attrs); if (!subreq) { tevent_req_error(req, ENOMEM); return; |