【发布时间】:2023-03-31 02:07:01
【问题描述】:
所以The Direct Project 又来了。我不是 LDAP 方面的专家,但我正在尝试建立一个测试环境,因为该标准需要任何包来支持从 LDAP 和 DNS CERT 获取证书,而不管包实现了哪种方法。
根据the documentation,“3.3.3 LDAP 查询”部分中规定的事件序列(针对相关性进行了修剪):
* Discover the Base DNs
Branches in LDAP must be defined by a “Base DN”. The list of Base DNs that are
provided by a LDAP directory are found by doing a LDAP Query with a NULL (i.e.
“”) Base DN, and ObjectClass=”DN”.
* Query across the Base DN for entries where "Mail" contains the endpoint address
我正在尝试使用 ldap_* 函数在 php 中实现此过程,但它们的方式似乎不起作用。显然,NULL 与空字符串不同(后者使对 ldap_search 的任何调用都返回“No such object”错误),并且“DN”不是 ObjectClass 属性的有效值。
那么,TL;DR,匿名远程用户是否有另一种方式检索我丢失的(列表?)基本 DN?
更新:改写标题以反映我的问题的根本原因:当 ldap_* api 不允许您指定“基本”范围时,从 PHP 读取 rootDSE。
【问题讨论】:
标签: php ldap openldap ldap-query