Ldap/setup-Phpdoc专题
安装/配置
目录
需求
You will need to get and compile LDAP client libraries from either » OpenLDAP or » Bind9.net in order to compile PHP with LDAP support. For PHP 5.6 or newer you will need OpenLDAP 2.4 or newer.
安装
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
为了使此扩展生效, DLL 文件必须能在 Windows 系统的
PATH指示的路径下找到。如何操作的信息,请参见题为“如何在 Windows 中将 PHP 目录加到 PATH 中”的FAQ。虽然将 DLL 文件从 PHP 文件夹复制到 Windows 系统目录也行,但不建议这样做。 此扩展需要下列文件在PATH路径中:libeay32.dllandssleay32.dll, or, as of OpenSSL 1.1libcrypto-*.dllandlibssl-*.dll
In order to use Oracle LDAP libraries, proper Oracle environment has to be set.
运行时配置
这些函数的行为受 php.ini 中的设置影响。
| 名字 | 默认 | 可修改范围 | 更新日志 |
|---|---|---|---|
| ldap.max_links | "-1" | PHP_INI_SYSTEM |
有关 PHP_INI_* 样式的更多详情与定义,见 配置可被设定范围。
这是配置指令的简短说明。
ldap.max_links int
The maximum number of LDAP connections per process.
资源类型
Most LDAP functions operate on or return resources (e.g. <span class="function">ldap_connect returns a positive LDAP link identifier required by most LDAP functions).