Sorry - I was referring to "php_ldap.dll", not php_lamp.dll
インストール手順
PHP の LDAP サポートはデフォルトで有効になっていません。 LDAP サポートを有効にして PHP をコンパイルするには、設定オプション --with-ldap[=DIR] を指定して PHP をコンパイルする必要があります。 DIR は LDAP をインストールしたディレクトリです。 SASL サポートを有効にするためには、システム上に sasl.h を用意し、 --with-ldap-sasl[=DIR] を指定する必要があります。
注意: Win32 ユーザへの注意
この拡張モジュールを動作させるには、 Windows システムの PATH が通った場所に DLL ファイルが存在する必要があります。 FAQ の "Windows で PHP のディレクトリを PATH に追加するにはどうすればいいのですか?" で、その方法を説明しています。 DLL ファイルを PHP のフォルダから Windows のシステムディレクトリにコピーしても動作します (システムディレクトリは、デフォルトで PATH に含まれるからです) が、これは推奨しません。 この拡張モジュールを使用するには、以下のファイルが PATH の通った場所にある必要があります。 libeay32.dll および ssleay32.dll
PHP 4.3.0 より前のバージョンでは、さらに libsasl.dll も必要です。
Oracle LDAP ライブラリを使用するには、Oracle 環境 が適切に設定されている 必要があります。
インストール手順
tom at wheelercreek dot com
28-Apr-2009 02:23
28-Apr-2009 02:23
tom at wheelercreek dot com
25-Apr-2009 07:57
25-Apr-2009 07:57
If you're running on Windows XP with Apache, and you installed PHP 5 from the windows installer rather than the full zipped version - you may not have the php_ldap.dll file.
I had to follow the steps above, making sure PHP was added to my Windows Path, adding the 2 dll files to the system32 directory, also making sure the php.ini extensions directory was set correctly (in my case: C:\Program Files\PHP\ext).
Still was a getting a message about not being able to locate the "php_lamp.dll" file. I finally went back, downloaded the full .zip file of latest PHP version, and that missing dll file is included there - along with many others.
Remember to restart Apache server after you do all this.
pam81
11-Nov-2008 10:01
11-Nov-2008 10:01
with EasyPHP uncomment in php.ini the extension
extension=php_ldap.dll
Restart the server and it works.
Steve
07-Aug-2008 03:03
07-Aug-2008 03: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 08:15
27-May-2008 08: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
