Posted by yawnmoth on 01/08/07 21:07
petersprc wrote:
> Hi,
>
> You might want to make sure the hostname you're using in ldap_connect
> matches the CN in the server's certificate exactly. You could try using
> ldaps:// as the protocol. You might also need to set your certificate
> dir or file in the client's ldap.conf file too.
>
> For example, using the stock package from RHEL4:
>
> /etc/openldap/ldap.conf:
>
> TLS_CACERT /usr/share/ssl/certs/slapd.pem # self-signed cert
I'm using Windows - not Linux. Assuming I should still be using
ldap.conf, any ideas as to where it should go?
The following suggests that the location of where the ldap.conf file
should be is hard-coded:
http://www.php.net/manual/en/ref.ldap.php#47427
I tried that, though, and it doesn't work. Maybe my *.conf file is
wrong?:
TLS_CACERT cacert.pem
The cacert.pem file is in the same directory as the *.conf file.
[Back to original message]
|