Dominik Mengelt wrote:
> Folks,
>
> On my system running Solaris 10 U6 and Webstack Bundle 1.4 I've the following
> problem:
>
> PHP LDAPS Test File:
> <?php
> putenv ("LDAPTLS_REQCERT=allow");
> $ds=ldap_connect("ldaps://<ldaps-server>");
>
Part of the answer:
Sun Web Stack uses the native Solaris LDAP client library on OpenSolaris
and Solaris 10 whereas Cool Stack used the OpenLDAP client library.
I'm pretty sure that the LDAPTLS_REQCERT envvar is specific to OpenLDAP.
PHP's ldap_connect() doesn't support LDAP URLs when using the native
Solaris client library (PHP relies on the client library to provide that
feature, so it differs depending on which client library is used). You
have to specify the host name and port number as separate arguments.
I don't know how to turn on ldaps from PHP though :(