summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-04-16 17:58:28 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-04-30 07:51:18 -0400
commit0d72f05cc87f42a8c2856c96501c64d69541be00 (patch)
tree4269b14e30621920dc63209e29c3176e9d163071 /src/Makefile.am
parent3765c2f9d4ba8aeffe140a8c5ab88acd79c66768 (diff)
downloadsssd-0d72f05cc87f42a8c2856c96501c64d69541be00.tar.gz
sssd-0d72f05cc87f42a8c2856c96501c64d69541be00.tar.xz
sssd-0d72f05cc87f42a8c2856c96501c64d69541be00.zip
Support SRV servers in failover
Adds a new failover API call fo_add_srv_server that allows the caller to specify a server that is later resolved into a list of specific servers using SRV requests. Also adds a new failover option that specifies how often should the servers resolved from SRV query considered valid until we need a refresh. The "real" servers to connect to are returned to the user as usual, using the fo_resolve_service_{send,recv} calls. Make SRV resolution work with c-ares 1.6
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 92244f4a4..22ac3581e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -252,6 +252,11 @@ SSSD_TOOLS_OBJ = \
SSSD_RESOLV_OBJ = \
resolv/async_resolv.c
+if BUILD_ARES_DATA
+ SSSD_RESOLV_OBJ += \
+ resolv/ares/ares_parse_srv_reply.c \
+ resolv/ares/ares_data.c
+endif
SSSD_FAILOVER_OBJ = \
providers/fail_over.c \
@@ -553,9 +558,7 @@ SSSD_RESOLV_TESTS_OBJ = \
$(SSSD_RESOLV_OBJ)
if BUILD_ARES_DATA
SSSD_RESOLV_TESTS_OBJ += \
- resolv/ares/ares_parse_srv_reply.c \
- resolv/ares/ares_parse_txt_reply.c \
- resolv/ares/ares_data.c
+ resolv/ares/ares_parse_txt_reply.c
endif
resolv_tests_SOURCES = \
@@ -565,7 +568,7 @@ resolv_tests_SOURCES = \
resolv_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS) \
- -DBUILD_TXT_SRV
+ -DBUILD_TXT
resolv_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \