summaryrefslogtreecommitdiffstats
path: root/src/providers/fail_over_srv.c
Commit message (Collapse)AuthorAgeFilesLines
* FO: Use SRV TTL in fail over codeJakub Hrozek2015-03-031-3/+24
| | | | | | | | | | Resolves: https://fedorahosted.org/sssd/ticket/1884 Removes the hardcoded SRV TTL timeout and uses TTL from the DNS instead. Reviewed-by: Pavel Březina <pbrezina@redhat.com> (cherry picked from commit 8df69bbc58c2f4d3f0b34be9756d9ddf24b1db6d)
* RESOLV: Add an internal function to read TTL from a DNS packetJakub Hrozek2015-02-111-1/+1
| | | | | | | | | | | | | Related: https://fedorahosted.org/sssd/ticket/1884 Adds an internal resolver function that reads the TTL for SRV records as specified by RFC-2181. Several internal c-ares definitions are used until c-ares contains a function that exposes all this information via a parsing function. Reviewed-by: Pavel Březina <pbrezina@redhat.com> (cherry picked from commit bf54fbed126ec3d459af40ea370ffadacd31c76d)
* Make DEBUG macro invocations variadicNikolai Kondrashov2014-02-121-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | Use a script to update DEBUG macro invocations to use it as a variadic macro, supplying format string and its arguments directly, instead of wrapping them in parens. This script was used to update the code: grep -rwl --include '*.[hc]' DEBUG . | while read f; do mv "$f"{,.orig} perl -e \ 'use strict; use File::Slurp; my $text=read_file(\*STDIN); $text=~s#(\bDEBUG\s*\([^(]+)\((.*?)\)\s*\)\s*;#$1$2);#gs; print $text;' < "$f.orig" > "$f" rm "$f.orig" done Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Stephen Gallagher <sgallagh@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* failover: check dns_domain if primary servers lookup failedPavel Březina2013-12-091-3/+7
| | | | | | | If primary servers lookup failed, dns_domain is not set. Resolves: https://fedorahosted.org/sssd/ticket/2173
* Fix formating of variables with type: size_tLukas Slebodnik2013-09-111-1/+1
|
* fo srv: add priority to fo_server_infoPavel Březina2013-09-051-0/+1
| | | | | This will give SRV plugins all information needed for additional sorting.
* resolv_sort_srv_reply: remove unnecessary mem_ctxPavel Březina2013-09-051-1/+1
|
* Fix czech specific character in my namePavel Březina2013-09-021-1/+1
|
* fix dead code in fail_over_srv.cPavel Březina2013-06-251-11/+12
| | | | | | | | https://fedorahosted.org/sssd/ticket/1969 The dead code is in fo_discover_servers_primary_done(). By fixing it I have also added a debug message on ret != EOK. This change is done also in fo_discover_servers_backup_done().
* fo_discover_servers_send: don't crash when backup_domain is NULLPavel Březina2013-05-031-0/+11
|
* dns srv plugin: compare domain names case insensitivePavel Březina2013-05-021-1/+1
|
* add fo_discover_servers requestPavel Březina2013-05-021-1/+238
| | | | | | | | | This request takes discovery domain for primary servers and other domain for backup servers and returns list of primary and backup servers. If primary domain is not reachable, it returns servers found in backup domain as primary servers.
* DNS sites support - SRV DNS lookup pluginPavel Březina2013-04-101-0/+444
https://fedorahosted.org/sssd/ticket/1032 This plugin mimics the current behaviour. If discovery_domain is set it is the only domain that is tried. If discovery_domain is not set, we try to autodetect domain first and if that fails or SRV lookup on this domain fails, we fallback to SSSD domain name.