Closed chilinux closed 6 years ago
Approved CLA
I can't accept this unless the same work is done in 14. As if I don't a feature will be in 13 but not in 14.
You can reopen this PR when and if you do this. Thank you for your work
Submitted pull request #11 to address the branch release/14.0
This is an attempt to leverage OpenLDAP v2's ability to specify multiple LDAP URIs to improve the resilience in a way that specifying just a single server can not. The serviceping function will return successful as long as at least one specified host access a socket connection. The buildldapuri will then use a space or comma delimited list of hosts along with the specified connection protocol and port to build a list or LDAP URIs. This string should then work for being passed to PHP's ldap_connect and ldapsearch with the -H flag.
Without these changes, only a single host can be specified and any problem connecting or binding to that single host will result in the LDAP call failing despite that the environment may provide replication to additional LDAP servers to provide high availability of the LDAP service.