Daily Shaarli

All links of one day in a single page.

October 10, 2023

关于php:ldap_bind()失败,并显示“无法联系LDAP服务器” | 码农家园

setsebool -P httpd_can_network_connect on

ubuntu安装php常见错误集锦_Ubuntu系统-系统教程

configure:error:Cannot find ldap.h

网上普遍的方法是安装openldap。

解决方法:

ubuntu下ldap的包名是libldap-2.4-2、ldap-utils、libldap2-dev,安装即可

在PHP中使用LDAP进行用户身份验证-php教程-PHP中文网

$ldap_server = "ldap://localhost";
$ldap_port = "389";
$ldap_conn = ldap_connect($ldap_server, $ldap_port) or die("Could not connect to LDAP server.");

使用nginx+fancyindex搭建一个带搜索功能漂亮的目录浏览站点_51CTO博客_nginx fancyindex