Advertisement

06.27.2008 at 12:07AM PDT, ID: 23520786 | Points: 250
[x]
Attachment Details

Installing LDAP server and accessing LDAP server using PHP on windows machine

Asked by logicslab in PHP for Windows, PHP Scripting Language, Apache Web Server

Tags: ,

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.org

2. 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\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.Start Free Trial
 
 
[+][-]06.27.2008 at 07:12PM PDT, ID: 21888898

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 07:13PM PDT, ID: 21888903

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 07:14PM PDT, ID: 21888906

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.29.2008 at 10:22PM PDT, ID: 21896771

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.29.2008 at 11:18PM PDT, ID: 21896973

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628