On Tue, Feb 20, 2001 at 11:14:41AM -0400, Victor V . Evtushenko wrote:
> * John Hallam <[EMAIL PROTECTED]> [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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to