I would like to know if anyone has configured Open LDAP on Windows XP enviroment. I have WAMP installed on my computer (Apache2.2.8, php5.2.6, MySQL 5.0.51).
My boss is asking me to build an intranet site. Here is what should happen:
1. The php application will recognizes who the users are using Active Directory information without having to log in again.
2. Be able to pull employee information from Active Directory (eg, name, department, hire date, etc...)
I did some reearch and find that the solution is to use PHP/LDAP. But LDAP is for Linux/Unix environment. And I have no clue how to make the configuration for my Windows XP.
I'm quite new to PHP and LDAP. Any help is greatly appreciated!
My question now isn't that far. I'm trying to configure IDAP for my PHP/Apache on Windows XP.
Here is what I've done:
1. included two modules in apache httpd.conf file: LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
and LoadModule ldap_module modules/mod_ldap.so
2. aslo add this to php.ini file: extension=php_ldap.dll
Then I looked at phpinfo() page, and see "ldap" information as follows:
LDAP Support: enabled
RCS Version: $Id: ldap.c,v 220.127.116.11.2.12 2007/12/31 07:20:07 sebastian Exp $
Total Links: 0/unlimited
API version: 2004
Vendor Name: OpenLDAP
Vendor Version: 0
Why the version is "0"?
so I try to make a ldap_connect() like this:
$ds = ldap_connect("localhost") or die("could not connect to server");
It won't connect to the localhost.
Can somebody help me on this? I assume there is something wrong with my PHP/LDAP configuration. Thanks and sorry for the lenghty decription.
No, my PC is not a domain Controller. Does that mean I need to get the valid LDAP server name instead of putting "localhost" in order to retrieve the directory information? By the way, is there any configuration that needs to be done on my own PC?