History log of /sssd-io/src/providers/fail_over_srv.c
Revision Date Author Comments Expand
8df69bbc58c2f4d3f0b34be9756d9ddf24b1db6d 03-Mar-2015 Jakub Hrozek <jhrozek@redhat.com>

FO: Use SRV TTL in fail over code 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>

bf54fbed126ec3d459af40ea370ffadacd31c76d 11-Feb-2015 Jakub Hrozek <jhrozek@redhat.com>

RESOLV: Add an internal function to read TTL from a DNS packet 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>

a3c8390d19593b1e5277d95bfb4ab206d4785150 12-Feb-2014 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

Make DEBUG macro invocations variadic 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>

/sssd-io/src/confdb/confdb.c /sssd-io/src/confdb/confdb_setup.c /sssd-io/src/db/sysdb.c /sssd-io/src/db/sysdb_autofs.c /sssd-io/src/db/sysdb_idmap.c /sssd-io/src/db/sysdb_ops.c /sssd-io/src/db/sysdb_ranges.c /sssd-io/src/db/sysdb_search.c /sssd-io/src/db/sysdb_selinux.c /sssd-io/src/db/sysdb_services.c /sssd-io/src/db/sysdb_ssh.c /sssd-io/src/db/sysdb_subdomains.c /sssd-io/src/db/sysdb_sudo.c /sssd-io/src/db/sysdb_upgrade.c /sssd-io/src/monitor/monitor.c /sssd-io/src/monitor/monitor_netlink.c /sssd-io/src/monitor/monitor_sbus.c ad/ad_access.c ad/ad_common.c ad/ad_domain_info.c ad/ad_dyndns.c ad/ad_id.c ad/ad_init.c ad/ad_srv.c ad/ad_subdomains.c data_provider_be.c data_provider_callbacks.c data_provider_fo.c data_provider_opts.c dp_auth_util.c dp_dyndns.c dp_pam_data_util.c dp_ptask.c dp_refresh.c fail_over.c fail_over_srv.c ipa/ipa_access.c ipa/ipa_auth.c ipa/ipa_autofs.c ipa/ipa_common.c ipa/ipa_config.c ipa/ipa_dyndns.c ipa/ipa_hbac_common.c ipa/ipa_hbac_hosts.c ipa/ipa_hbac_rules.c ipa/ipa_hbac_services.c ipa/ipa_hbac_users.c ipa/ipa_hostid.c ipa/ipa_hosts.c ipa/ipa_id.c ipa/ipa_idmap.c ipa/ipa_init.c ipa/ipa_netgroups.c ipa/ipa_s2n_exop.c ipa/ipa_selinux.c ipa/ipa_selinux_maps.c ipa/ipa_srv.c ipa/ipa_subdomains.c ipa/ipa_subdomains_ext_groups.c ipa/ipa_subdomains_id.c ipa/ipa_sudo.c krb5/krb5_access.c krb5/krb5_auth.c krb5/krb5_become_user.c krb5/krb5_child.c krb5/krb5_child_handler.c krb5/krb5_common.c krb5/krb5_delayed_online_authentication.c krb5/krb5_init.c krb5/krb5_init_shared.c krb5/krb5_renew_tgt.c krb5/krb5_utils.c krb5/krb5_wait_queue.c ldap/ldap_access.c ldap/ldap_auth.c ldap/ldap_child.c ldap/ldap_common.c ldap/ldap_id.c ldap/ldap_id_cleanup.c ldap/ldap_id_enum.c ldap/ldap_id_netgroup.c ldap/ldap_id_services.c ldap/ldap_init.c ldap/sdap.c ldap/sdap_access.c ldap/sdap_async.c ldap/sdap_async_autofs.c ldap/sdap_async_connection.c ldap/sdap_async_enum.c ldap/sdap_async_groups.c ldap/sdap_async_groups_ad.c ldap/sdap_async_initgroups.c ldap/sdap_async_initgroups_ad.c ldap/sdap_async_nested_groups.c ldap/sdap_async_netgroups.c ldap/sdap_async_services.c ldap/sdap_async_sudo.c ldap/sdap_async_sudo_hostinfo.c ldap/sdap_async_sudo_timer.c ldap/sdap_async_users.c ldap/sdap_autofs.c ldap/sdap_child_helpers.c ldap/sdap_dyndns.c ldap/sdap_fd_events.c ldap/sdap_id_op.c ldap/sdap_idmap.c ldap/sdap_range.c ldap/sdap_refresh.c ldap/sdap_reinit.c ldap/sdap_sudo.c ldap/sdap_sudo_cache.c proxy/proxy_auth.c proxy/proxy_child.c proxy/proxy_id.c proxy/proxy_init.c proxy/proxy_netgroup.c proxy/proxy_services.c simple/simple_access.c simple/simple_access_check.c /sssd-io/src/resolv/async_resolv.c /sssd-io/src/resolv/async_resolv_utils.c /sssd-io/src/responder/autofs/autofssrv.c /sssd-io/src/responder/autofs/autofssrv_cmd.c /sssd-io/src/responder/autofs/autofssrv_dp.c /sssd-io/src/responder/common/negcache.c /sssd-io/src/responder/common/responder_cmd.c /sssd-io/src/responder/common/responder_common.c /sssd-io/src/responder/common/responder_dp.c /sssd-io/src/responder/common/responder_get_domains.c /sssd-io/src/responder/nss/nsssrv.c /sssd-io/src/responder/nss/nsssrv_cmd.c /sssd-io/src/responder/nss/nsssrv_mmap_cache.c /sssd-io/src/responder/nss/nsssrv_netgroup.c /sssd-io/src/responder/nss/nsssrv_private.h /sssd-io/src/responder/nss/nsssrv_services.c /sssd-io/src/responder/pac/pacsrv.c /sssd-io/src/responder/pac/pacsrv_cmd.c /sssd-io/src/responder/pac/pacsrv_utils.c /sssd-io/src/responder/pam/pam_LOCAL_domain.c /sssd-io/src/responder/pam/pam_helpers.c /sssd-io/src/responder/pam/pamsrv.c /sssd-io/src/responder/pam/pamsrv_cmd.c /sssd-io/src/responder/pam/pamsrv_dp.c /sssd-io/src/responder/ssh/sshsrv.c /sssd-io/src/responder/ssh/sshsrv_cmd.c /sssd-io/src/responder/ssh/sshsrv_dp.c /sssd-io/src/responder/sudo/sudosrv.c /sssd-io/src/responder/sudo/sudosrv_cmd.c /sssd-io/src/responder/sudo/sudosrv_dp.c /sssd-io/src/responder/sudo/sudosrv_get_sudorules.c /sssd-io/src/responder/sudo/sudosrv_query.c /sssd-io/src/sbus/sbus_client.c /sssd-io/src/sbus/sssd_dbus_common.c /sssd-io/src/sbus/sssd_dbus_connection.c /sssd-io/src/sbus/sssd_dbus_server.c /sssd-io/src/sss_client/ssh/sss_ssh_authorizedkeys.c /sssd-io/src/sss_client/ssh/sss_ssh_knownhostsproxy.c /sssd-io/src/tests/auth-tests.c /sssd-io/src/tests/cmocka/test_dyndns.c /sssd-io/src/tests/cmocka/test_fqnames.c /sssd-io/src/tests/cmocka/test_nss_srv.c /sssd-io/src/tests/cmocka/test_utils.c /sssd-io/src/tests/common_dom.c /sssd-io/src/tests/common_tev.c /sssd-io/src/tests/debug-tests.c /sssd-io/src/tests/files-tests.c /sssd-io/src/tests/krb5_child-test.c /sssd-io/src/tests/resolv-tests.c /sssd-io/src/tests/simple_access-tests.c /sssd-io/src/tests/sysdb-tests.c /sssd-io/src/tests/sysdb_ssh-tests.c /sssd-io/src/tools/files.c /sssd-io/src/tools/selinux.c /sssd-io/src/tools/sss_cache.c /sssd-io/src/tools/sss_debuglevel.c /sssd-io/src/tools/sss_groupadd.c /sssd-io/src/tools/sss_groupdel.c /sssd-io/src/tools/sss_groupmod.c /sssd-io/src/tools/sss_groupshow.c /sssd-io/src/tools/sss_seed.c /sssd-io/src/tools/sss_sync_ops.c /sssd-io/src/tools/sss_useradd.c /sssd-io/src/tools/sss_userdel.c /sssd-io/src/tools/sss_usermod.c /sssd-io/src/tools/tools_mc_util.c /sssd-io/src/tools/tools_util.c /sssd-io/src/tools/tools_util.h /sssd-io/src/util/authtok.c /sssd-io/src/util/backup_file.c /sssd-io/src/util/check_and_open.c /sssd-io/src/util/child_common.c /sssd-io/src/util/crypto/libcrypto/crypto_base64.c /sssd-io/src/util/crypto/libcrypto/crypto_obfuscate.c /sssd-io/src/util/crypto/nss/nss_obfuscate.c /sssd-io/src/util/crypto/nss/nss_util.c /sssd-io/src/util/debug.c /sssd-io/src/util/domain_info_utils.c /sssd-io/src/util/find_uid.c /sssd-io/src/util/nscd.c /sssd-io/src/util/server.c /sssd-io/src/util/signal.c /sssd-io/src/util/sss_ini.c /sssd-io/src/util/sss_krb5.c /sssd-io/src/util/sss_krb5.h /sssd-io/src/util/sss_ldap.c /sssd-io/src/util/sss_nss.c /sssd-io/src/util/sss_selinux.c /sssd-io/src/util/sss_ssh.c /sssd-io/src/util/sss_tc_utf8.c /sssd-io/src/util/user_info_msg.c /sssd-io/src/util/usertools.c /sssd-io/src/util/util.c /sssd-io/src/util/util.h /sssd-io/src/util/util_lock.c /sssd-io/src/util/well_known_sids.c
c7c01428baf8e29a7997cb879cea109d63c4e581 09-Dec-2013 Pavel Březina <pbrezina@redhat.com>

failover: check dns_domain if primary servers lookup failed If primary servers lookup failed, dns_domain is not set. Resolves: https://fedorahosted.org/sssd/ticket/2173

0e65abe5cf2abf5d4b431cf6bd161b419f07901d 11-Sep-2013 Lukas Slebodnik <lslebodn@redhat.com>

Fix formating of variables with type: size_t

/sssd-io/src/db/sysdb_autofs.c /sssd-io/src/db/sysdb_ops.c /sssd-io/src/db/sysdb_search.c ad/ad_srv.c fail_over_srv.c ipa/ipa_config.c ipa/ipa_idmap.c ipa/ipa_netgroups.c ipa/ipa_selinux.c ipa/ipa_selinux_maps.c ipa/ipa_srv.c ipa/ipa_subdomains_ext_groups.c krb5/krb5_child.c krb5/krb5_child_handler.c krb5/krb5_renew_tgt.c ldap/ldap_child.c ldap/ldap_id_cleanup.c ldap/sdap_access.c ldap/sdap_async_autofs.c ldap/sdap_async_groups.c ldap/sdap_async_groups_ad.c ldap/sdap_async_initgroups.c ldap/sdap_async_initgroups_ad.c ldap/sdap_async_nested_groups.c ldap/sdap_async_netgroups.c ldap/sdap_async_services.c ldap/sdap_async_sudo.c ldap/sdap_async_users.c ldap/sdap_child_helpers.c simple/simple_access_check.c /sssd-io/src/responder/nss/nsssrv_mmap_cache.c /sssd-io/src/responder/pam/pamsrv_cmd.c /sssd-io/src/util/child_common.c
002113460c411cab449c0d7dea824cea1a6c68e7 05-Sep-2013 Pavel Březina <pbrezina@redhat.com>

fo srv: add priority to fo_server_info This will give SRV plugins all information needed for additional sorting.

87158890d6e7239167d7c8089070f3d2cdf5e58d 05-Sep-2013 Pavel Březina <pbrezina@redhat.com>

resolv_sort_srv_reply: remove unnecessary mem_ctx

d98fdd80331e93cd698281341360a3ce3e30afbe 02-Sep-2013 Pavel Březina <pbrezina@redhat.com>

Fix czech specific character in my name

07065554c8963e2aa9fc227a51480135bc4d5130 25-Jun-2013 Pavel Březina <pbrezina@redhat.com>

fix dead code in fail_over_srv.c 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().

e3db994ddc8eda225c4cc3c90e9c0bd82281faf6 03-May-2013 Pavel Březina <pbrezina@redhat.com>

fo_discover_servers_send: don't crash when backup_domain is NULL

4e748c28dec6fcb732ebe24829f1b750074d488e 02-May-2013 Pavel Březina <pbrezina@redhat.com>

dns srv plugin: compare domain names case insensitive

1099620d87afcee7e239cbb75fd364643c8c1124 02-May-2013 Pavel Březina <pbrezina@redhat.com>

add fo_discover_servers request 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.

77d165f0629966db65753a3aee84a8b4971673af 10-Apr-2013 Pavel Březina <pbrezina@redhat.com>

DNS sites support - SRV DNS lookup plugin 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.