Hi,
The attached patch is a self-contained change related to
https://fedorahosted.org/sssd/ticket/1884. I also wrote code that uses
the TTL values in the failover code:
https://fedorapeople.org/cgit/jhrozek/public_git/sssd.git/log/?h=srvttl
But when creating the unit tests I stumbled upon:
https://fedorahosted.org/sssd/ticket/2533
and especially:
https://fedorahosted.org/sssd/ticket/2532
Until these two are fixed, I don't think we can merge the TTL patch.
Feel free to review the changes in my git branch, though, I don't think
they'd change.