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 搜索过滤器在多个组织单位的 Active Directory 中搜索用户?
为了使用单个 LDAP 过滤器搜索多个 OU,您应该将搜索的基础定位在包含您有兴趣搜索的所有 OU 的顶级 OU,并执行 Tree Scope 搜索。我相信这应该为你做。
如果您在单个 LDAP 搜索中查找多个单独的 OU,我认为这在单个 LDAP 搜索中是不可能的。您可以执行多个 LDAP 搜索,每个 OU 一个,然后整理结果,但我认为您不能在单个 LDAP 搜索中指定多个目标 DN。
我想选择所有列但是如果燃料 = 1 则开始日期 > '1 oct 2013' 否则如果燃料 = 0 则开始日期 > '9 月 1 日'。
使用 SQL 服务器 2005。
我试过这个..
SELECT * FROM EntitlementEpisod