Reputation: 8294
e.g.
BASE dc=a,dc=b,dc=c,dc=d URI ldaps://somesite1.com TLS_REQCERT demand TLS_CACERT /etc/ssl/certs/1.cert BASE ou=e,o=f URI ldaps://somesite1.com TLS_REQCERT demand TLS_CACERT /etc/ssl/certs/2.cert
Upvotes: 0
Views: 542
Reputation: 48387
The URLs are the same for both servers?
"PHP has no method to set a client certificate" but the link provides a method for working around this using a single certificate. However this isn't going to work when trying to access both LDAP servers in the same PHP script.
The obvious way to address this would be to run stunnel on the webserver with appropriate configs for each LDAP server (see this howto and the docs on the stunnel website) listening on different ports for each LDAP server.
Upvotes: 0