diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-09-17 11:11:28 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-17 15:03:14 +0200 |
commit | b1caacb098ae99ad65144120fdec4d0fd98ad9d5 (patch) | |
tree | 484209b909e064186b88fd12b7d74d66293cce01 /src/providers/ad | |
parent | bb42eab468114ac76246053a11b5de05a57acb5a (diff) | |
download | sssd-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/ad')
-rw-r--r-- | src/providers/ad/ad_common.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/providers/ad/ad_common.c b/src/providers/ad/ad_common.c index 2749a96e..21a7b534 100644 --- a/src/providers/ad/ad_common.c +++ b/src/providers/ad/ad_common.c @@ -280,18 +280,9 @@ ad_failover_init(TALLOC_CTX *mem_ctx, struct be_ctx *bectx, } if (!primary_servers) { - if (backup_servers) { - DEBUG(SSSDBG_TRACE_FUNC, - ("No primary servers defined but backup are present, " - "setting backup servers as primary\n")); - primary_servers = backup_servers; - backup_servers = NULL; - } else { - DEBUG(SSSDBG_TRACE_FUNC, - ("No primary or backup servers defined but backup are present, " - "setting backup servers as primary\n")); - primary_servers = BE_SRV_IDENTIFIER; - } + DEBUG(SSSDBG_CONF_SETTINGS, + ("No primary servers defined, using service discovery\n")); + primary_servers = BE_SRV_IDENTIFIER; } ret = ad_servers_init(mem_ctx, bectx, primary_servers, options, true); |