PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Runtime Configuration> <Installing/Configuring
Last updated: Fri, 28 Nov 2008

view this page in

Installation

LDAP support in PHP is not enabled by default. You will need to use the --with-ldap[=DIR] configuration option when compiling PHP to enable LDAP support. DIR is the LDAP base install directory. To enable SASL support, be sure --with-ldap-sasl[=DIR] is used, and that sasl.h exists on the system.

Note: Note to Win32 Users
In order for this extension to work, there are DLL files that must be available to the Windows system PATH. For information on how to do this, see the FAQ entitled "How do I add my PHP directory to the PATH on Windows". Although copying DLL files from the PHP folder into the Windows system directory also works (because the system directory is by default in the system's PATH), this is not recommended. This extension requires the following files to be in the PATH: libeay32.dll and ssleay32.dll
Versions before PHP 4.3.0 additionally require libsasl.dll.

In order to use Oracle LDAP libraries, proper Oracle environment has to be set.



Runtime Configuration> <Installing/Configuring
Last updated: Fri, 28 Nov 2008
 
add a note add a note User Contributed Notes
Installation
Fabrizio
20-Nov-2008 01:22
I searched the requested windows dll's (ssleay32.dll and libeay32.dll) with google, in this way I downloaded two bad versions of them.
The I downloaded them from here :

http://pecl4win.php.net/list_dlls.php

and it worked :-)
pam81
11-Nov-2008 03:01
with EasyPHP  uncomment in php.ini the extension

extension=php_ldap.dll

Restart the server and it works.
WimL
28-Oct-2008 06:36
The php5 install that ships with mac os x 10.5 does include ldap support.
Steve
06-Aug-2008 09:03
Running under IIS, I found php_ldap would not load even though d:\php contained libeay32.dll and ssleay32.dll, and d:\php was in the PATH environment variable.

I finally tracked this down to the position of d:\php in the PATH.  If d:\php is near the head of the PATH, everything works fine.  If d:\php is near the end of the PATH, apparently it gets ignored by IIS (even though it works fine from the command line, e.g., with php -m).  Have no idea why this is.
Anonymous
27-May-2008 02:15
Running under IIS, I did not find the need to download and compile libraries.

1. Edit PHP.INI (which should be in windows directory)
2. Uncomment the line extension=php_ldap.dll
3. Restart IIS

Runtime Configuration> <Installing/Configuring
Last updated: Fri, 28 Nov 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites