summaryrefslogtreecommitdiffstats
path: root/src/providers/data_provider_fo.c
Commit message (Collapse)AuthorAgeFilesLines
* try primary server after retry_timeout + 1 seconds when switching to backupPavel Březina2012-12-181-1/+2
| | | | | | | | | | | | | | https://fedorahosted.org/sssd/ticket/1679 The problem is when we are about to reset the server status, we don't get through the timeout (30 seconds) because the "switch to primary server" task is scheduled 30 seconds after fall back to a backup server. Thus the server status remains "not working" and is resetted after another 30 seconds. We need to make sure that the server status is tried after the timeout period. retry_timeout is currently hardcoded to 30, thus the change in man page.
* Missing parameter in DEBUG message.Michal Zidek2012-12-041-1/+2
|
* FO: Check server validity before setting statusJakub Hrozek2012-09-131-14/+13
| | | | | | | | | | | | | | | | | The list of resolved servers is allocated on the back end context and kept in the fo_service structure. However, a single request often resolves a server and keeps a pointer until the end of a request and only then gives feedback about the server based on the request result. This presents a big race condition in case the SRV resolution is used. When there are requests coming in in parallel, it is possible that an incoming request will invalidate a server until another request that holds a pointer to the original server is able to give a feedback. This patch simply checks if a server is in the list of servers maintained by a service before reading its status. https://fedorahosted.org/sssd/ticket/1364
* Duplicate detection in fail over did not work.Michal Zidek2012-08-151-2/+4
| | | | https://fedorahosted.org/sssd/ticket/1472
* Primary server support: basic support in failover codeJan Zeleny2012-08-011-28/+187
| | | | | | | | Now there are two list of servers for each service. If currently selected server is only backup, then an event will be scheduled which tries to get connection to one of primary servers and if it succeeds, it starts using this server instead of the one which is currently connected to.
* Detect cycle in the fail over on subsequent resolve requests onlyJakub Hrozek2012-03-081-2/+5
|
* Only do one cycle when resolving a serverJakub Hrozek2012-03-061-21/+69
| | | | https://fedorahosted.org/sssd/ticket/1214
* IPA: Set the DNS discovery domain to match ipa_domainStephen Gallagher2012-03-011-3/+6
| | | | https://fedorahosted.org/sssd/ticket/1217
* Don't give memory context in confdb where not neededJan Zeleny2012-02-211-4/+3
|
* Failover: Introduce a per-service timeoutJakub Hrozek2011-12-201-5/+13
| | | | https://fedorahosted.org/sssd/ticket/976
* Cleanup: Remove unused parametersJakub Hrozek2011-11-221-2/+2
|
* New DEBUG facility - conversionPavel Březina2011-08-251-3/+3
| | | | | | | | | | https://fedorahosted.org/sssd/ticket/925 Conversion of the old debug_level format to the new one. (only where it was necessary) Removed: SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT)
* fo_get_server_name() getter for a server nameJakub Hrozek2011-07-211-1/+1
| | | | | Allows to be more concise in tests and more defensive in resolve callbacks
* Rename fo_get_server_name to fo_get_server_str_nameJakub Hrozek2011-07-211-3/+3
|
* Only print server address if one is availableJakub Hrozek2011-07-211-0/+7
|
* Split reading resolver family order into a separate functionJakub Hrozek2011-07-111-23/+3
|
* Do not hardcode default resolver timeoutJakub Hrozek2011-07-111-1/+1
|
* Switch resolver to using resolv_hostent and honor TTLJakub Hrozek2011-06-151-4/+5
|
* Run callbacks if server IP changesJakub Hrozek2011-03-091-2/+9
|
* Allow fallback to SSSD domainStephen Gallagher2011-01-211-2/+4
| | | | | | | | | | | | | | | | | | | | | For backwards-compatibility with older versions of the SSSD (such as 1.2.x), we need to be able to have our DNS SRV record lookup be capable of falling back to using the SSSD domain name as the DNS discovery domain. This patch modifies our DNS lookups so that they behave as follows: If dns_discovery_domain is specified, it is considered authoritative. No other discovery domains will be attempted. If dns_discovery_domain is not specified, we first attempt to look up the SRV records using the domain portion of the machine's hostname. If this returns "NOTFOUND", we will try performing an SRV record query using the SSSD domain name as the DNS discovery domain. https://fedorahosted.org/sssd/ticket/754
* Run checks before resetting offline stateSumit Bose2010-12-011-0/+5
| | | | | | | | | | | | Before setting the backend to online during a reset offline request the check_online method if the ID provider is called. If the check_online method returns that the ID provider is still not reachable the backend stays offline. Otherwise the backend is switched to online and the related callbacks are run. Additionally the check online test is called during the res_init request because a change in /etc/resolve.conf might also make a server reachable which was assumed offline before.
* Allow protocol fallback for SRV queriesJakub Hrozek2010-12-011-3/+22
| | | | https://fedorahosted.org/sssd/ticket/691
* Add an interface to try next fail-over server after connection to the active ↵eindenbom2010-07-091-45/+45
| | | | server was unexpectedly dropped.
* Added an interface to query number of configured (and currently resolved ↵eindenbom2010-07-091-0/+21
| | | | through SRV records) failover servers.
* Add dns_discovery_domain optionJakub Hrozek2010-06-301-1/+12
| | | | | | | | | | | | The service discovery used to use the SSSD domain name to perform DNS queries. This is not an optimal solution, for example from the point of view of authconfig. This patch introduces a new option "dns_discovery_domain" that allows to set the domain part of a DNS SRV query. If this option is not set, the default behavior is to use the domain part of the machine's hostname. Fixes: #479
* Add run_callbacks flagSumit Bose2010-05-271-2/+23
|
* Use service discovery in backendsJakub Hrozek2010-05-071-0/+32
| | | | | | | | | Integrate the failover improvements with our back ends. The DNS domain used in the SRV query is always the SSSD domain name. Please note that this patch changes the default value of ldap_uri from "ldap://localhost" to "NULL" in order to use service discovery with no server set.
* Add dns_resolver_timeout optionStephen Gallagher2010-04-301-1/+9
| | | | | | We had a hard-coded timeout of five seconds for DNS lookups in the async resolver. This patch adds an option 'dns_resolver_timeout' to specify this value (Default: 5)
* Restrict family lookupsJakub Hrozek2010-02-221-3/+49
| | | | | | | Adds a new option that tells resolver which address family to prefer or use exclusively. Fixes: #404
* Rename server/ directory to src/Stephen Gallagher2010-02-181-0/+356
Also update BUILD.txt