如何在Microsoft Active Directory上的OU上进行LDAP搜索?(How do I make a LDAP search on OU on Microsoft Active Di

编程入门 行业动态 更新时间:2024-10-28 04:19:40
如何在Microsoft Active Directory上的OU上进行LDAP搜索?(How do I make a LDAP search on OU on Microsoft Active Directory?)

我试图返回LDAP搜索,它应该返回我在活动目录中具有OU=groups所有条目,因为我没有得到预期的结果(通常我什么也得不到)。

过滤:( (ou:dn:=groups)

我知道通过正常方式搜索DN是不可能的,仍然可以在文件管理器中获取此信息的正确方法是什么,该文件管理器可以与Active Directory一起使用。

参考:

如何创建一个LDAP查询,只返回所有级别具有OU = Groups的组? http://confluence.atlassian.com/display/DEV/How+to+write+LDAP+search+filters

I tried to return LDAP search that should return me all entries that do have OU=groups on an active directory by I do not get the expected results (usually I get nothing).

Filter: (ou:dn:=groups)

I know that searching on DN is not possible by normal means, still what is the correct way of getting this information in a filer, one that would work with Active Directory.

Reference:

How can I make a LDAP query that returns only groups having OU=Groups from all levels? http://confluence.atlassian.com/display/DEV/How+to+write+LDAP+search+filters

最满意答案

我不认为你可以在一次搜索中做到这一点。 您可以先查找名称OU = groups的所有组织单位,然后搜索每个OU。

它存在ExtensibleMatch ,它允许您想要执行的操作,但在Active-Directory中不支持它。

以下是Microsft支持的搜索过滤器语法的参考表格

I don't think that you can do that in one search. You can first look for all organizational units of the name OU=groups, and then make a search for each OU.

It exists ExtensibleMatch that allow what you want to do, but it's not supported in Active-Directory.

Here is the reference form Microsft supported Search Filter Syntax

更多推荐

本文发布于:2023-08-07 19:39:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465707.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   Active   Microsoft   Directory   LDAP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!