From b1caacb098ae99ad65144120fdec4d0fd98ad9d5 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Mon, 17 Sep 2012 11:11:28 +0200 Subject: Failover: use _srv_ when no primary server is defined https://fedorahosted.org/sssd/ticket/1521 --- src/providers/krb5/krb5_common.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/providers/krb5/krb5_common.c') diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c index 0e96b806..006dac1c 100644 --- a/src/providers/krb5/krb5_common.c +++ b/src/providers/krb5/krb5_common.c @@ -637,18 +637,9 @@ int krb5_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx, } 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, " - "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 = krb5_servers_init(ctx, service, service_name, primary_servers, true); -- cgit