LDAP root query syntax to search more than one specific OU

前端 未结 5 1024
-上瘾入骨i
-上瘾入骨i 2020-11-30 05:47

I need to run a single LDAP query that will search through two specific organization units (OU) in the root query however I\'m having a tough go of it. I\'ve tried the follo

5条回答
  •  我在风中等你
    2020-11-30 06:11

    I don't think this is possible with AD. The distinguishedName attribute is the only thing I know of that contains the OU piece on which you're trying to search, so you'd need a wildcard to get results for objects under those OUs. Unfortunately, the wildcard character isn't supported on DNs.

    If at all possible, I'd really look at doing this in 2 queries using OU=Staff... and OU=Vendors... as the base DNs.

提交回复
热议问题