Problem enabling LDAP support in PHP on Windows 2003 Server

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problem enabling LDAP support in PHP on Windows 2003 Server

Postby bigul » 25. June 2008 14:12

Hello Friends,

Am new to LDAP.

Here is my server config:

Windows 2003 server
XAMPP v 1.6.6a

I modified php.ini(apche/bin/php.ini & php/php.ini) by uncomment "extension=php_ldap.dll".

Copied libeay32.dll and ssleay32.dll to c:\windows\system32.

Modified apache/conf/httd.conf by uncomment
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule sspi_auth_module modules/mod_auth_sspi.so

Then i restarted the web server, but when I try to test ldap connectivity I got this error . I used php manual's ldap example

Connecting ...connect result is Resource id #2
Binding ...
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't contact LDAP server in C:\Program Files\xampp\htdocs\week\index1.php on line 60
Bind result is
Searching for (sn=S*) ...
Warning: ldap_search() [function.ldap-search]: Search: Can't contact LDAP server in C:\Program Files\xampp\htdocs\week\index1.php on line 66
Search result is

Warning: ldap_count_entries(): supplied argument is not a valid ldap result resource in C:\Program Files\xampp\htdocs\week\index1.php on line 69
Number of entires returned is
Getting entries ...

Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in C:\Program Files\xampp\htdocs\week\index1.php on line 72
Data for items returned


Please help me to work with ldap fine.

Anyone's assistance is greately appreciated.

BIGUL M
bigul
 
Posts: 1
Joined: 25. June 2008 13:56

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 46 guests