ad_common.h revision 03b859510dc13a13a456ca4aa94c0561a0e9684c
/*
SSSD
Authors:
Stephen Gallagher <sgallagh@redhat.com>
Copyright (C) 2012 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 AD_COMMON_H_
#define AD_COMMON_H_
#include "providers/ldap/ldap_common.h"
#define AD_SERVICE_NAME "AD"
#define AD_GC_SERVICE_NAME "AD_GC"
/* The port the Global Catalog runs on */
#define AD_GC_PORT 3268
#define AD_AT_OBJECT_SID "objectSID"
#define AD_AT_DNS_DOMAIN "DnsDomain"
#define AD_AT_NT_VERSION "NtVer"
#define AD_AT_NETLOGON "netlogon"
#define MASTER_DOMAIN_SID_FILTER "objectclass=domain"
struct ad_options;
enum ad_basic_opt {
AD_DOMAIN = 0,
AD_OPTS_BASIC /* opts counter */
};
struct ad_id_ctx {
struct sdap_id_ctx *sdap_id_ctx;
struct sdap_id_conn_ctx *ldap_ctx;
struct sdap_id_conn_ctx *gc_ctx;
struct ad_options *ad_options;
};
struct ad_service {
struct sdap_service *sdap;
struct sdap_service *gc;
struct krb5_service *krb5_service;
};
struct ad_options {
/* Common options */
struct ad_service *service;
/* ID Provider */
struct sdap_options *id;
/* Auth and chpass Provider */
/* Dynamic DNS updates */
struct be_resolv_ctx *be_res;
struct be_nsupdate_ctx *dyndns_ctx;
};
struct confdb_ctx *cdb,
const char *conf_path,
struct sss_domain_info *dom,
struct ad_options **_opts);
const char *realm,
const char *ad_domain,
const char *hostname);
const char *ad_domain,
const char *hostname,
const char *keytab,
const char *sasl_authid);
const char *primary_servers,
const char *backup_servers,
const char *krb5_realm,
const char *ad_service,
const char *ad_gc_service,
const char *ad_domain,
struct ad_service **_service);
struct confdb_ctx *cdb,
const char *conf_path,
struct sdap_options **_opts);
struct confdb_ctx *cdb,
const char *conf_path);
struct ad_options *ad_opts,
struct ad_options *ad_opts);
struct ad_id_ctx *
struct sdap_id_conn_ctx **
struct sss_domain_info *dom);
struct sdap_id_conn_ctx **
struct sss_domain_info *dom);
struct sdap_id_conn_ctx **
struct sss_domain_info *dom);
struct sdap_id_conn_ctx *
/* AD dynamic DNS updates */
struct ad_options *ctx);
void ad_dyndns_timer(void *pvt);
void **pvt_data);
void **pvt_data);
#endif /* AD_COMMON_H_ */