Re: Getting LDAPS to work

From: Date: Tue, 20 Feb 2001 15:14:41 +0000
Subject: Re: Getting LDAPS to work
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40751@lists.php.net to get a copy of this message
* John Hallam <john_hallam@yahoo.com> [010215 17:58]: > I have got php 4.0.4p1 configured with openssl 0.9.6 > and ldap and I'm trying to get an ldap_connect to work > over ldaps as described in the ldap_connect > documentation. > > I have no problem connecting using > ldap_connect(hostname) format but I do have a problem > with the URL format. This is what I am doing :- > > $Host='ldaps://hostname/'; > $ds=ldap_connect($Host); > > What is wrong ?? any ideas ?? > Why don't you try $ds = ldap_connect("hostname", 689); where 689 is port number for SSL connection? If you use another port number, you should change 689 to whatever you use. Victor.

« previous php.general (#40751) next »