I just installed XAMPP/LAMMP 1.5.3a on SuSE 10.1.
I need to use PHP scripts to access a secure ldap directory. I've used the scripts elsewhere successfully but the ldap connection isn't working with the LAMPP environment.
Script looks like this:
$server = "ldaps://xxx.xxx.org";
$ds = ldap_connect($server);
$bind = ldap_bind($ds);
The bind fails, and returns "Can't contact LDAP server (-1)"
I get the same error from the ldapsearch script in /opt/lampp/bin/:
bin/ldapsearch -H "ldaps://xxx.xxx.org" -x
returns this:
ldap_bind: Can't contact LDAP server (-1).
However when I use the SuSE-installed OpenLDAP on this system, the bind works just fine.
This tells me that the problem is with the XAMPP OpenLDAP configuration. (Correct me if you think this is wrong).
Does anyone know how I could either reconfigure the OpenLDAP installation OR somehow have XAMPP use the SuSE-provided OpenLDAP? Or any other suggestions?
Thanks,
James