在单个查询中使用 DN 获取多个实体的电子邮件 [英] Fetch Email of multiple entities using DNs in a single query

查看:17
本文介绍了在单个查询中使用 DN 获取多个实体的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Ldap 服务器有 2 个或更多实体的 DN,需要为它们获取电子邮件 ID.有没有办法在单个查询中做到这一点.我查看了可扩展匹配搜索过滤器",但想不出办法做到这一点.

I have DNs of 2 or more entities of my Ldap Server and need to fetch the email ids for them. Is there a way to do this in a single query. I looked at 'Extensible Match Search Filter) but couldn't figure out a way to do this.

推荐答案

使用 | OR 运算符构建查询过滤器:

Use the | OR operator to construct your query filter:

(|(distinguishedName=<DN 1 goes here>)(distinguishedName=<DN 2 goes here>))

如有必要,您可以添加更多子句,只要生成的过滤器字符串的大小小于 10MB(约 500 万个字符)

You can add more clauses if necessary, as long as the resulting filter string is less than 10MB in size (~5 million characters)

这篇关于在单个查询中使用 DN 获取多个实体的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆