Helpful Information
 
 
Category: Development Articles
Using PHP With LDAP (part 1)

I think this article is generally great. However, I am a windows user, I use PHP-Triad for my webserver and PHP. Thus, I tried to install the OpenLDAP, but I realised that it is only for Linux computers, thus, if this article do talk more about the installation process it would be great. And if anyone who knows how to, please keep me inform.

Thanks,
Alianto

Hi there,

You can download the Window port of the OpenLDAP from the following website - http://www.fivesight.com/downloads/openldap.asp

Of course, you will need to register (for free) with the site in order to access the download.

Once you have download the package, update the "slapd.conf" that comes along with the installation. The most important changes are the file location - it should reflect the location where you have installed OpenLDAP.

Once you are throught with that, create a folder called "openldap-ldbm". This is required to created the files where the information will be stored by OpenLDAP.

Then, start the LDAP daemon by running the "slapd.exe" file. Once suggestion here, download the "debug" version of OpenLDAP. And then you can the run daemon in the debug mode (slapd.exe -d 1) - useful to catch if something is wrong.

You can add entries to LDAP the "slapadd" tool and view existing entries using "slapcat". Of course, the various de-facto tool such as ldapmodify and ldapsearch are available. But, I did not find them up to the mark.

Hope this helps.

Hey, great article. I already read the article on administration so parts were simular.

When is the PDF gonna be online?

For an example of traversing LDAP, drilling down to the lowest branch and producing SQL:

http://wirl.united.net.kg/ldap_to_sql.html

Using PHP With LDAP \(part 1\) (http://www.devshed.com/c/a/PHP/Using-PHP-With-LDAP-part-1)

April 04, 2003 - Among its many other capabilities, PHP also comes with a full-featured API to connect to, and communicate with, LDAP directory servers. This article explores how PHP and LDAP can be used together, beginning with a crash course in LDAP basics and proceeding to a series of simple examples that demonstrate how PHP can be used to search an LDAP directory and format the results for the Web. Read the article .

Please discuss this article in this thread. You can read the article here (http://www.devshed.com/c/a/PHP/Using-PHP-With-LDAP-part-1).

Posted by: alianto (http://forums.devshed.com/member.php?s=&action=getinfo&userid=19271)
Subject: Need more help on installation process
Date: 04-08-2003 07:08:27 MST

I think this article is generally great. However, I am a windows user, I use PHP-Triad for my webserver and PHP. Thus, I tried to install the OpenLDAP, but I realised that it is only for Linux computers, thus, if this article do talk more about the installation process it would be great. And if anyone who knows how to, please keep me inform.

Thanks, Alianto

Posted by: Anonymous User
Subject: Windows installation of OpenLDAP...
Date: 04-10-2003 23:12:06 MST

Hi there,

You can download the Window port of the OpenLDAP from the following website - http://www.fivesight.com/downloads/openldap.asp

Of course, you will need to register (for free) with the site in order to access the download.

Once you have download the package, update the "slapd.conf" that comes along with the installation. The most important changes are the file location - it should reflect the location where you have installed OpenLDAP.

Once you are throught with that, create a folder called "openldap-ldbm". This is required to created the files where the information will be stored by OpenLDAP.

Then, start the LDAP daemon by running the "slapd.exe" file. Once suggestion here, download the "debug" version of OpenLDAP. And then you can the run daemon in the debug mode (slapd.exe -d 1) - useful to catch if something is wrong.

You can add entries to LDAP the "slapadd" tool and view existing entries using "slapcat". Of course, the various de-facto tool such as ldapmodify and ldapsearch are available. But, I did not find them up to the mark.

Hope this helps.

If you would like to see an article covering a particular topic, please post your request here (http://forums.devshed.com/forumdisplay.php?s=&forumid=65).










privacy (GDPR)