Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个使用 LDAP 身份验证的应用程序。但是,我坚持使用 LDAP_SEARCH() 函数。基本上我需要从用户可以在设置中指定的 FQDN(完全限定域名)动态创建 base_dn。
例如 DOMAIN.internal
我该怎么做?
你不应该。基本对象由目录信息树确定,搜索范围应尽可能“向下”进入目录信息树。此信息来自目录管理员。如果您需要知道哪些命名上下文由服务器托管/隐藏,您应该查询根 DSE。另请参阅:“LDAP:编程实践”。