Hello Friends,
Am new to LDAP. My os is Windows 2003 server and my localhost server is XAMPP v 1.6.6a.
I tried following steps.
1. Download & installed openldap-2.2.15-db-4.2.52-
openssl-0.
9.7e-win32
.exe file from
www.openldap.org2. Modified php.ini(apche/bin/php.ini & php/php.ini) by uncomment extension=php_ldap.dll.
3. Copied libeay32.dll and ssleay32.dll to c:\windows\system32.
4. 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\in
dex1.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\in
dex1.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\in
dex1.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\in
dex1.php on line 72
Data for items returned
Please help me to work with ldap fine.
Anyone's assistance is greately appreciated.
Start Free Trial