Page 1 of 1

openldap ssl/ldaps problem

PostPosted: 02. August 2006 15:41
by jrotering
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

an old ldap issue with XAMPP on linux

PostPosted: 13. June 2007 19:35
by rjsavaglio
Hello James,

Did you ever get a solution to this problem? I have the EXACT same issue, even though it is RedHat and not SuSE linux. Any advice you could provide would be a great help.

Bob

problems with LDAPS after installaing XAMPP

PostPosted: 26. June 2007 12:39
by dum
Hello,
I just subscribed to this list and want to thank everybody for each possible support I may find here.

I used the PHP and Apache version that comes with the suSE SLES.
Becaus I did not get an upgrade and did not want to complie PHP on my own, I installed the latest version of XAMPP.
The only problem that remains after this upgrade is that my connection to on ldap server (Microsoft AD) using ldaps does not work anymore.
Does anyone has an idea ?
Installed version : xampp-linux-1.6.2

Version mismatch

PostPosted: 05. July 2007 17:53
by najones
It could be a version mismatch on client and server. This can cause problems sometimes. I'm having this issue with OS X server 10.4.10 (Ldap v3 1.7.4) and ldap client version 2.3.27-25.

Basically in my 2 years experience with it as an administrator, I've concluded that OS X server blows compared to any linux distribution used for serving these common open source packages like LAMP or ldap. Basically you can't trust a company like Apple or Microsoft who would cripple their software to create lock in.

I did not have the issue with whatever ldap version was under 10.4.7 (I think it was 10.4.7, basically it worked before a power outage caused a restart which updated the machine, then I updated again from 10.4.8 to 10.4.10 but the problem persisted)

Try binding with insecure ldap to see if that works.

Nick

Re: openldap ssl/ldaps problem

PostPosted: 11. May 2009 10:42
by spidee
Hi there same problem....this time on 1.7.1 connecting to and searching ldap:// works but
not ldaps:// any idea how to fix...running same code on stock sled / rhel boxes works
ok ?

Cheers !

Re: openldap ssl/ldaps problem

PostPosted: 26. August 2011 20:34
by Etdashou
It would be so nice to have a solution to this issue.

I think that we need to compile OpenLDAP 2.x.x with SSL support, but I have absolutly not idea how to do this with XAMPP.