windows 10 php 7.4.8 启用 LDAP 模块未激活

windows 10 php 7.4.8 enable LDAP module is not active

我想在我的 XAMPP php 7.4.8 Windows 10.

上启用 LDAP 模块

按照 LDAP 部分中的此说明进行操作后

https://docs.bitnami.com/aws/apps/wordpress/configuration/enable-modules/#ldap

重新启动 apache 并检查 phpinfo,phpinfo 中没有活动的 LDAP 模块部分。

如何在 php 7.4 中启用 LDAP 模块?

  1. 确保 path\to\xampp\php 目录有以下文件

libeay32.dll libsasl.dll ssleay32.dll 通常,您可以在 path\to\xampp\sendmail 中找到这些文件 - 这个库也使用它们。但如果没有,请尝试在 xampp 目录中搜索它们。

  1. 在 php.ini (path\to\xampp\php\php.ini) 文件中取消注释或添加 ldap 扩展

扩展名=ldap 重启服务器

  1. 确保在系统环境变量PATH中设置了path\to\xampp\php目录。