summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-06-18 13:28:22 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-21 14:12:55 +0200
commitab4c0508e9a298db78c72bf4b586704d6e97697d (patch)
tree17a82d442caf597c335b9e6398ecb995185a4b8b /src/providers
parent5ecdadbb6460877ebd6884131de38a5439555c8f (diff)
downloadsssd-ab4c0508e9a298db78c72bf4b586704d6e97697d.tar.gz
sssd-ab4c0508e9a298db78c72bf4b586704d6e97697d.tar.xz
sssd-ab4c0508e9a298db78c72bf4b586704d6e97697d.zip
failover: if expanded server is marked as neutral, invoke srv collapse
https://fedorahosted.org/sssd/ticket/1947 Otherwise we will do the SRV expansion once again: 1. leaving the old servers in server list 2. meta server is not inserted back in the list, the newly found servers are inserted behind meta server, meta server is orphaned and the new servers are forgotten
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/fail_over.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c
index 47bbd820d..17ebbf4ca 100644
--- a/src/providers/fail_over.c
+++ b/src/providers/fail_over.c
@@ -1111,6 +1111,13 @@ resolve_srv_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
* query collapsed
* */
case SRV_NEUTRAL: /* Request SRV lookup */
+ if (server != NULL && server != state->meta) {
+ /* A server created by expansion of meta server was marked as
+ * neutral. We have to collapse the servers and issue new
+ * SRV resolution. */
+ state->meta = collapse_srv_lookup(&server);
+ }
+
if (state->meta->srv_data->dns_domain == NULL) {
/* we need to look up our DNS domain first */
DEBUG(SSSDBG_TRACE_FUNC,