diff options
author | Sumit Bose <sbose@redhat.com> | 2013-04-24 11:36:04 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-03 20:06:28 +0200 |
commit | e2f6326ea56217afab7623c542a237ee84eb74da (patch) | |
tree | 089642c7e2feb9fab7ce6d5311b9b4e1823e6a19 /src/providers/ipa/ipa_subdomains_id.c | |
parent | b24e4bec819b29f1ec8e77083d4e7610c5dd9c77 (diff) | |
download | sssd-e2f6326ea56217afab7623c542a237ee84eb74da.tar.gz sssd-e2f6326ea56217afab7623c542a237ee84eb74da.tar.bz2 sssd-e2f6326ea56217afab7623c542a237ee84eb74da.zip |
Add SID related lookups to IPA subdomains
This patch add the functionality to handle lookup by SIDs and lookups
for SIDs to the subdomain branch of the IPA ID provider.
Diffstat (limited to 'src/providers/ipa/ipa_subdomains_id.c')
-rw-r--r-- | src/providers/ipa/ipa_subdomains_id.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_subdomains_id.c b/src/providers/ipa/ipa_subdomains_id.c index 06194837..ea313cba 100644 --- a/src/providers/ipa/ipa_subdomains_id.c +++ b/src/providers/ipa/ipa_subdomains_id.c @@ -91,6 +91,8 @@ struct tevent_req *ipa_get_subdom_acct_send(TALLOC_CTX *memctx, switch (state->entry_type) { case BE_REQ_USER: case BE_REQ_GROUP: + case BE_REQ_BY_SECID: + case BE_REQ_USER_AND_GROUP: ret = EOK; break; case BE_REQ_INITGROUPS: @@ -164,6 +166,15 @@ static void ipa_get_subdom_acct_connected(struct tevent_req *subreq) return; } break; + case BE_FILTER_SECID: + req_input->type = REQ_INP_SECID; + req_input->inp.secid = talloc_strdup(req_input, state->filter); + if (req_input->inp.secid == NULL) { + DEBUG(SSSDBG_OP_FAILURE, ("talloc_strdup failed.\n")); + tevent_req_error(req, ENOMEM); + return; + } + break; default: DEBUG(SSSDBG_OP_FAILURE, ("Invalid sub-domain filter type.\n")); state->dp_error = dp_error; |