summaryrefslogtreecommitdiff
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-09-17 11:11:28 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-17 15:03:14 +0200
commitb1caacb098ae99ad65144120fdec4d0fd98ad9d5 (patch)
tree484209b909e064186b88fd12b7d74d66293cce01 /src/providers/ipa
parentbb42eab468114ac76246053a11b5de05a57acb5a (diff)
downloadsssd-b1caacb098ae99ad65144120fdec4d0fd98ad9d5.tar.gz
sssd-b1caacb098ae99ad65144120fdec4d0fd98ad9d5.tar.bz2
sssd-b1caacb098ae99ad65144120fdec4d0fd98ad9d5.zip
Failover: use _srv_ when no primary server is defined
https://fedorahosted.org/sssd/ticket/1521
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_common.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c
index fe7ac91c..db736921 100644
--- a/src/providers/ipa/ipa_common.c
+++ b/src/providers/ipa/ipa_common.c
@@ -932,16 +932,9 @@ int ipa_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx,
}
if (!primary_servers) {
- if (backup_servers) {
- DEBUG(SSSDBG_CONF_SETTINGS, ("Missing primary IPA server but "
- "backup server given - using it as primary!\n"));
- primary_servers = backup_servers;
- backup_servers = NULL;
- } else {
- DEBUG(SSSDBG_CONF_SETTINGS, ("Missing primary and backup IPA "
- "servers - using service discovery!\n"));
- primary_servers = BE_SRV_IDENTIFIER;
- }
+ DEBUG(SSSDBG_CONF_SETTINGS,
+ ("No primary servers defined, using service discovery\n"));
+ primary_servers = BE_SRV_IDENTIFIER;
}
ret = ipa_servers_init(ctx, service, options, primary_servers, true);