7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce Simo Sorce <ssorce@redhat.com>
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce Copyright (C) 2013 Red Hat
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce This program is free software; you can redistribute it and/or modify
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce it under the terms of the GNU General Public License as published by
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce the Free Software Foundation; either version 3 of the License, or
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce (at your option) any later version.
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce This program is distributed in the hope that it will be useful,
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce but WITHOUT ANY WARRANTY; without even the implied warranty of
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce GNU General Public License for more details.
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce You should have received a copy of the GNU General Public License
7a468783159880f81f7cd9270ee94bf0954d6a56Simo Sorce along with this program. If not, see <http://www.gnu.org/licenses/>.
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinastatic void sdap_pam_access_handler_done(struct tevent_req *subreq);
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinasdap_pam_access_handler_send(TALLOC_CTX *mem_ctx,
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina DEBUG(SSSDBG_CRIT_FAILURE, "tevent_req_create() failed\n");
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina subreq = sdap_access_send(state, params->ev, params->be_ctx,
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina tevent_req_set_callback(subreq, sdap_pam_access_handler_done, req);
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina /* TODO For backward compatibility we always return EOK to DP now. */
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinastatic void sdap_pam_access_handler_done(struct tevent_req *subreq)
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina req = tevent_req_callback_data(subreq, struct tevent_req);
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina state = tevent_req_data(req, struct sdap_pam_access_handler_state);
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov DEBUG(SSSDBG_CRIT_FAILURE, "Error retrieving access check result.\n");
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina /* TODO For backward compatibility we always return EOK to DP now. */
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinasdap_pam_access_handler_recv(TALLOC_CTX *mem_ctx,
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina struct sdap_pam_access_handler_state *state = NULL;