/*
SSSD
IPA Subdomains Module
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2011 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _IPA_SUBDOMAINS_H_
#define _IPA_SUBDOMAINS_H_
#include "providers/ipa/ipa_common.h"
#include "config.h"
#ifndef IPA_TRUST_KEYTAB_DIR
#endif /* IPA_TRUST_KEYTAB_DIR */
/* ==Sid2Name Extended Operation============================================= */
struct ipa_id_ctx *ipa_id_ctx,
struct dp_method *dp_methods);
/* The following are used in server mode only */
struct ipa_ad_server_ctx {
};
/* Can be used to set up trusted subdomain, for example fetch
* keytab in server mode
*/
struct tevent_req *
struct tevent_context *ev,
struct ipa_id_ctx *id_ctx,
struct sss_domain_info *subdom);
/* To be used by ipa_subdomains.c only */
struct tevent_req *
struct tevent_context *ev,
struct ipa_id_ctx *id_ctx,
struct sss_domain_info *parent);
struct ipa_id_ctx *id_ctx,
struct sss_domain_info *subdom);
struct ipa_id_ctx *id_ctx);
struct ldb_context *ldb_ctx,
/* Utilities */
struct ldb_context *ldb_ctx,
struct sysdb_attrs *attrs);
/* struct for external group memberships, defined in
struct ipa_ext_groups;
struct ipa_server_mode_ctx {
const char *realm;
const char *hostname;
};
struct ipa_id_ctx *id_ctx);
enum req_input_type {
};
struct req_input {
union {
const char *name;
const char *secid;
const char *cert;
} inp;
};
struct tevent_context *ev,
struct dp_id_data *ar,
struct ipa_server_mode_ctx *server_mode,
struct sss_domain_info *user_dom,
struct sdap_id_ctx *sdap_id_ctx,
const char *domain);
struct tevent_context *ev,
const char *ext_member,
void *pvt);
struct tevent_req *req,
enum sysdb_member_type *_member_type,
struct sss_domain_info **_dom,
struct sysdb_attrs **_member);
#endif /* _IPA_SUBDOMAINS_H_ */