I am trying to connect to an ldap sever over a ssl connection. Do I need to configure php with the --with-openssl command?
On the php.net website under ldap_connect, one of the examples has the following comment:
"make sure your host is the correct one that you issued your secure certificate to"
$ldaphost = "ldaps://ldap.example.com/";
In the user comments section someone wrote:
"To use ldap_connect to connect via SSL to your LDAP server, you must use the following:
ldap_connect( "ldaps://server.domain.com/", 636 );
"server.domain.com" must be the exact name of the server your issued your certificate to (with OpenLDAP, using openssl)."
What exactly does this mean? I know it's plain english, but I'm hoping someone could elaborate on this a little.
Thanks for your help in advance.