I can successfully do LDAP authentication with a PHP script running on XAMPP on Windows XP. But I copied this same script to an Apache on Linux Red Hat with no XAMPP and the ldap_bind call nows gives me the following error:
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't contact LDAP server
My Windows XAMPP info is as follows:
Windows 5.1 Build 2600 Platform 2 Service Pack 3
PHP version: 5.3.8
Apache version: 2.2.21
LDAP: OpenLDAP, RCS Version: $ld: ldap.c 313665 2011/07/25 11:42:53, API version 3001, Vendor Version 20319
My Red Hat Linux box without XAMPP:
PHP version: 5.1.6
Apache version: 2.2.3
LDAP: OpenLDAP, RCS Version: $ld: ldap.c, v 1.161.2.3 2006/01/01 12:50:08, API version 3001, Vendor Version 20343
I can ping the LDAP server from both Linux and Windows machines.
I can telnet on the LDAP server with port 3268, so it doesn't seem to be a network connectivity issue…
Would anyone have any ideas?