/*
SSSD
IPA Common utility code
Copyright (C) Simo Sorce <ssorce@redhat.com> 2009
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_COMMON_H_
#define _IPA_COMMON_H_
#include "providers/ldap/ldap_common.h"
#include "providers/krb5/krb5_common.h"
#include "providers/ad/ad_common.h"
struct ipa_service {
};
struct ipa_init_ctx;
enum ipa_basic_opt {
IPA_DOMAIN = 0,
};
enum ipa_netgroup_attrs {
IPA_OC_NETGROUP = 0,
};
enum ipa_hostgroup_attrs {
IPA_OC_HOSTGROUP = 0,
};
enum ipa_selinux_usermap_attrs {
};
enum ipa_view_attrs {
IPA_OC_VIEW = 0,
};
enum ipa_override_attrs {
IPA_OC_OVERRIDE = 0,
};
enum ipa_sudorule_attrs {
IPA_OC_SUDORULE = 0,
};
enum ipa_sudocmdgroup_attrs {
IPA_OC_SUDOCMDGROUP = 0,
};
enum ipa_sudocmd_attrs {
IPA_OC_SUDOCMD = 0,
};
struct ipa_auth_ctx {
};
/* In server mode, each subdomain corresponds to an AD context */
struct ipa_id_ctx {
char *view_name;
/* Only used with server mode */
};
struct ipa_options {
/* id provider */
/* auth and chpass provider */
};
/* options parsers */
struct confdb_ctx *cdb,
const char *conf_path,
struct sss_domain_info *dom,
struct ipa_options **_opts);
struct confdb_ctx *cdb,
const char *conf_path,
struct data_provider *dp,
struct sdap_options **_opts);
struct confdb_ctx *cdb,
const char *conf_path,
struct confdb_ctx *cdb,
const char *conf_path,
struct sdap_options **_opts);
struct ipa_options *ctx);
struct ipa_id_ctx *id_ctx,
struct dp_method *dp_methods);
struct ipa_id_ctx *id_ctx,
struct dp_method *dp_methods);
const char *primary_servers,
const char *backup_servers,
struct ipa_options *options,
struct ipa_service **_service);
struct ipa_id_ctx *id_ctx,
struct dp_method *dp_methods);
struct sss_idmap_range *_range,
bool *_external_mapping);
const char *dom_name,
const char *dom_sid_str,
bool allow_collisions);
struct sdap_id_ctx *id_ctx,
struct sdap_idmap_ctx **_idmap_ctx);
struct sysdb_attrs **hosts,
struct sysdb_attrs **_ipa_host);
#endif /* _IPA_COMMON_H_ */