diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2012-07-17 08:08:20 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-01 16:19:42 +0200 |
commit | 294e9a5521d327c5cdc49beeb9cb9e703b3134f1 (patch) | |
tree | 7f4ab43282eea5d9fdeb2b5cf8e9a3e90ec45436 /src/providers/ad | |
parent | 46118ee53dc0d25e449cd7e37e624a4c62b78ee2 (diff) | |
download | sssd-294e9a5521d327c5cdc49beeb9cb9e703b3134f1.tar.gz sssd-294e9a5521d327c5cdc49beeb9cb9e703b3134f1.tar.bz2 sssd-294e9a5521d327c5cdc49beeb9cb9e703b3134f1.zip |
Primary server support: new option in AD provider
This patch adds support for new config option ad_backup_server. The
description of this option's functionality is included in man page in
one of previous patches.
Diffstat (limited to 'src/providers/ad')
-rw-r--r-- | src/providers/ad/ad_common.h | 1 | ||||
-rw-r--r-- | src/providers/ad/ad_init.c | 4 | ||||
-rw-r--r-- | src/providers/ad/ad_opts.h | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/ad/ad_common.h b/src/providers/ad/ad_common.h index f2ed680d..320bf1c9 100644 --- a/src/providers/ad/ad_common.h +++ b/src/providers/ad/ad_common.h @@ -33,6 +33,7 @@ struct ad_options; enum ad_basic_opt { AD_DOMAIN = 0, AD_SERVER, + AD_BACKUP_SERVER, AD_HOSTNAME, AD_KEYTAB, AD_KRB5_REALM, diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index 0c0a8ef6..d0831252 100644 --- a/src/providers/ad/ad_init.c +++ b/src/providers/ad/ad_init.c @@ -67,6 +67,7 @@ common_ad_init(struct be_ctx *bectx) { errno_t ret; char *ad_servers = NULL; + char *ad_backup_servers = NULL; /* Get AD-specific options */ ret = ad_get_common_options(bectx, bectx->cdb, @@ -81,9 +82,10 @@ common_ad_init(struct be_ctx *bectx) } ad_servers = dp_opt_get_string(ad_options->basic, AD_SERVER); + ad_backup_servers = dp_opt_get_string(ad_options->basic, AD_BACKUP_SERVER); /* Set up the failover service */ - ret = ad_failover_init(ad_options, bectx, ad_servers, NULL, ad_options, + ret = ad_failover_init(ad_options, bectx, ad_servers, ad_backup_servers, ad_options, &ad_options->service); if (ret != EOK) { DEBUG(SSSDBG_FATAL_FAILURE, diff --git a/src/providers/ad/ad_opts.h b/src/providers/ad/ad_opts.h index 458e7ea4..eba5a099 100644 --- a/src/providers/ad/ad_opts.h +++ b/src/providers/ad/ad_opts.h @@ -30,6 +30,7 @@ struct dp_option ad_basic_opts[] = { { "ad_domain", DP_OPT_STRING, NULL_STRING, NULL_STRING }, { "ad_server", DP_OPT_STRING, NULL_STRING, NULL_STRING }, + { "ad_backup_server", DP_OPT_STRING, NULL_STRING, NULL_STRING }, { "ad_hostname", DP_OPT_STRING, NULL_STRING, NULL_STRING }, { "krb5_keytab", DP_OPT_STRING, NULL_STRING, NULL_STRING }, { "krb5_realm", DP_OPT_STRING, NULL_STRING, NULL_STRING}, |