blog
2024-03-19
1 阅读
php ldap 2 调用
在您需要使用LDAP调用之前,您需要知道以下信息:
您将使用的目录服务器的名称或地址服务器的“base dn”(该服务器上保存的"世界"目录的一部分,可以是“o=My Company, c=US”)您是否需要密码才能访问服务器(许多服务器将为“匿名绑定”提供读取访问权限,但其他任何内容都需要密码)您将在应用程序中进行的典型LDAP调用序列将遵循以下模式:
ldap_connect() // establish connection to server
|
ldap_bind() // anonymous or authenticated "login"
|
do something like search or update the directory
and display the results
|
ldap_close() // "logout"