Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for connecting to multiple LDAP hosts by iterating over s…
…pace-separated host strings This update enhances the LDAP client by allowing it to connect to multiple LDAP servers. The 'Host' field now accepts a space-separated string of LDAP host addresses. The `Connect` method iterates over these hosts, attempting to establish a connection with each one until a successful connection is made. Key changes: - Split the 'Host' field into individual host addresses. - Iterated over each host to attempt a connection. - Implemented error handling to try the next host if a connection fails. - Updated the connection logic to support both non-SSL and SSL connections, including handling TLS upgrades. This change improves the robustness of the LDAP client by ensuring that the application can failover to another LDAP server if the primary server is unavailable.
- Loading branch information