Hi,
please see the attached patch. I tested it by following:
https://ovalousek.wordpress.com/2015/08/03/autofs/
with the new patch, just adding:
autofs_provider = ad is enough.
I wrote the new provider because it's IMO the more systematic solution
to #2862 than any hacks in failover.