diff options
| author | Jakub Hrozek <jhrozek@redhat.com> | 2017-03-24 10:39:12 +0100 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2017-03-30 14:09:22 +0200 |
| commit | cee85e8fb9534ec997e5388fce59f392cf029573 (patch) | |
| tree | 8d97dfaa6ddaf5ed379c1cfda3a52a36cc4aa731 /src/responder/sudo | |
| parent | 825e8bf2f73a815c2eceb36ae805145fcbacf74d (diff) | |
| download | sssd-cee85e8fb9534ec997e5388fce59f392cf029573.tar.gz sssd-cee85e8fb9534ec997e5388fce59f392cf029573.tar.xz sssd-cee85e8fb9534ec997e5388fce59f392cf029573.zip | |
CACHE_REQ: Domain type selection in cache_req
Related to:
https://pagure.io/SSSD/sssd/issue/3310
Adds a new enumeration cache_req_dom_type. It is a tri-state that
allows the caller to select which domains can be contacted - either only
POSIX, only application domains or any type.
Not all plugins of cache_req have the new parameter added -- only those
that are usable/useful in a non-POSIX environment. For example, it makes
no sense to allow the selection for calls by ID because those are
inherently POSIX-specific. Also, services or netgroups are supported
only coming from POSIX domains.
At the moment, the patch should not change any behaviour as all calls
default to contacting POSIX domains only.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/responder/sudo')
| -rw-r--r-- | src/responder/sudo/sudosrv_get_sudorules.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c index 52dfd5c70..cfdbfc9c9 100644 --- a/src/responder/sudo/sudosrv_get_sudorules.c +++ b/src/responder/sudo/sudosrv_get_sudorules.c @@ -644,7 +644,8 @@ struct tevent_req *sudosrv_get_rules_send(TALLOC_CTX *mem_ctx, DEBUG(SSSDBG_TRACE_FUNC, "Running initgroups for [%s]\n", username); subreq = cache_req_initgr_by_name_send(state, ev, sudo_ctx->rctx, - sudo_ctx->rctx->ncache, 0, NULL, + sudo_ctx->rctx->ncache, 0, + CACHE_REQ_POSIX_DOM, NULL, username); if (subreq == NULL) { ret = ENOMEM; |
