summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/providers/fail_over_srv.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/providers/fail_over_srv.c b/src/providers/fail_over_srv.c
index 9ff3de982..96c8248fc 100644
--- a/src/providers/fail_over_srv.c
+++ b/src/providers/fail_over_srv.c
@@ -295,6 +295,17 @@ static void fo_discover_servers_primary_done(struct tevent_req *subreq)
goto done;
}
+ if (state->backup_domain == NULL) {
+ DEBUG(SSSDBG_TRACE_FUNC, ("No backup domain specified\n"));
+
+ if (ret == ERR_SRV_NOT_FOUND || ret == ERR_SRV_LOOKUP_ERROR) {
+ DEBUG(SSSDBG_MINOR_FAILURE, ("Unable to retrieve primary nor "
+ "backup servers [%d]: %s\n", ret, sss_strerror(ret)));
+ }
+
+ goto done;
+ }
+
if (strcasecmp(state->dns_domain, state->backup_domain) == 0) {
/* primary domain was unreachable, we will use servers from backup
* domain as primary */