We should discover against every server address, rather than just passing each server name to ldap_initialize.
Otherwise we fail in configurations where IPv6 addresses are available but not working.
Created attachment 85354 [details] [review]
Try to contact all available addresses for discovery
Don't just contact each SRV record when doing discovery, but
resolve and try to contact each A record.
This fixes problems when a machine has both IPv4 and IPv6 records
but one of these isn't usable for some reason.
Attachment 85354 [details] pushed as 775bed9 - Try to contact all available addresses for discovery