安裝

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 to Win32 Users

為了使此擴(kuò)展生效, DLL 文件必須能在 Windows 系統(tǒng)的 PATH 指示的路徑下找到。如何操作的信息,請(qǐng)參見題為“如何在 Windows 中將 PHP 目錄加到 PATH 中”的FAQ。雖然將 DLL 文件從 PHP 文件夾復(fù)制到 Windows 系統(tǒng)目錄也行,但不建議這樣做。 此擴(kuò)展需要下列文件在 PATH 路徑中: libeay32.dll and ssleay32.dll, or, as of OpenSSL 1.1 libcrypto-*.dll and libssl-*.dll

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