Re: Getting LDAPS to work

From: Date: Wed, 21 Feb 2001 08:42:21 +0000
Subject: Re: Getting LDAPS to work
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-40916@lists.php.net to get a copy of this message
On Tue, Feb 20, 2001 at 11:14:41AM -0400, Victor V . Evtushenko wrote: > * 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. Because then you're not using SSL, and the URL format should work if you use OpenLDAP 2.x.x libraries, and it does work for me. I've tested it on Linux and I know people using this heavily on Solaris as well. Stig -- Duct tape is like the force. It has a light side, and a dark side, and it holds the universe together ... -- Carl Zwanzig

« previous php.general (#40916) next »