ipa_id.h revision 881c4ba834b23ae651ac01db667801f314eb0a5d
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny/*
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny SSSD
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny IPA Identity Backend Module
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny Authors:
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny Jan Zeleny <jzeleny@redhat.com>
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny Copyright (C) 2011 Red Hat
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny This program is free software; you can redistribute it and/or modify
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny it under the terms of the GNU General Public License as published by
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny the Free Software Foundation; either version 3 of the License, or
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny (at your option) any later version.
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny This program is distributed in the hope that it will be useful,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny but WITHOUT ANY WARRANTY; without even the implied warranty of
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny GNU General Public License for more details.
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny You should have received a copy of the GNU General Public License
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny along with this program. If not, see <http://www.gnu.org/licenses/>.
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny*/
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny#ifndef _IPA_ID_H_
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny#define _IPA_ID_H_
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny#include "providers/ldap/ldap_common.h"
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny#include "providers/ipa/ipa_common.h"
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny#include "providers/ldap/sdap.h"
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zelenyvoid ipa_account_info_handler(struct be_req *breq);
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zelenystruct tevent_req *ipa_get_netgroups_send(TALLOC_CTX *memctx,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny struct tevent_context *ev,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny struct sysdb_ctx *sysdb,
bd92e8ee315d4da9350b9ef0358c88a7b54aeebeStephen Gallagher struct sss_domain_info *dom,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny struct sdap_options *opts,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny struct ipa_options *ipa_options,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny struct sdap_handle *sh,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny const char **attrs,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny const char *filter,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny int timeout);
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zelenyint ipa_get_netgroups_recv(struct tevent_req *req,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny TALLOC_CTX *mem_ctx,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny size_t *reply_count,
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny struct sysdb_attrs ***reply);
8edf0e447266d68f10264eb3f3ea514cd1687041Jakub Hrozek
8edf0e447266d68f10264eb3f3ea514cd1687041Jakub Hrozekvoid ipa_check_online(struct be_req *be_req);
8edf0e447266d68f10264eb3f3ea514cd1687041Jakub Hrozek
36a12aea020a935ffa40505fa02860c3d921ad0cSumit Bosestruct tevent_req *ipa_s2n_get_acct_info_send(TALLOC_CTX *mem_ctx,
36a12aea020a935ffa40505fa02860c3d921ad0cSumit Bose struct tevent_context *ev,
36a12aea020a935ffa40505fa02860c3d921ad0cSumit Bose struct sdap_options *opts,
36a12aea020a935ffa40505fa02860c3d921ad0cSumit Bose struct sss_domain_info *dom,
36a12aea020a935ffa40505fa02860c3d921ad0cSumit Bose struct sdap_handle *sh,
36a12aea020a935ffa40505fa02860c3d921ad0cSumit Bose const char **attrs,
36a12aea020a935ffa40505fa02860c3d921ad0cSumit Bose int entry_type,
36a12aea020a935ffa40505fa02860c3d921ad0cSumit Bose const char *user_name,
36a12aea020a935ffa40505fa02860c3d921ad0cSumit Bose uid_t uid);
36a12aea020a935ffa40505fa02860c3d921ad0cSumit Boseint ipa_s2n_get_acct_info_recv(struct tevent_req *req);
881c4ba834b23ae651ac01db667801f314eb0a5dJan Zeleny
881c4ba834b23ae651ac01db667801f314eb0a5dJan Zelenystruct tevent_req *ipa_get_subdomain_account_info_send(TALLOC_CTX *memctx,
881c4ba834b23ae651ac01db667801f314eb0a5dJan Zeleny struct tevent_context *ev,
881c4ba834b23ae651ac01db667801f314eb0a5dJan Zeleny struct sdap_id_ctx *ctx,
881c4ba834b23ae651ac01db667801f314eb0a5dJan Zeleny struct be_acct_req *ar);
881c4ba834b23ae651ac01db667801f314eb0a5dJan Zelenyint ipa_user_get_recv(struct tevent_req *req, int *dp_error_out);
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny#endif