Hi Daniel

Very important: TLS is NOT SSL.... The start TLS is almost guaranteed not to
work for secure layer communication to your LDAP server. (You do need two
dll files in your win\sys32 directory though)

What I suggest is the following: Install STUNNEL accept connections on a
port... send all this communication to the LDAP server on its secure port.
STUNNEL will act as a wrapper for all LDAP queries.

Your script will then connect to your localhost on the port you chose above
and will not even know that the LDAP query is being sent away via a stunnel.

Cheers

> Hello,
> I'm using the 4.3.0 version of php on Windows 2000 SP3.
> I'm trying to get php to make a secure connection to our ldap server.
> I am able to make insecure connections and queries just fine.
> In the php.ini file I have enabled php_ldap.dll and php_openssl.dll.
> If I attempt to use ldap_start_tls I get an error: 'Call to undefined
function'.
> So I'm assuming the ldap libs were not compiled with TLS.
> Unfortunately I cannot get ldaps to work either.
> Using a statement like:
> ldap_connect("ldaps://ldap.host.com") or ldap_connect("ldap.host.com",
636)
> produces the error: 'Unable to bind to server', when a bind is attempted.
> Our ldap logs show a connection being opened and then immediately closed.
>
> I also tried downloading and installing libsasl.dll, but this had no
effect on my problem.
> Does this version php for windows suppport secure connections?
>
> --Daniel Fisher
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to