LDAP数据过滤问题

2023-07-29,,

集成ldap同步用户遇到的问题:

首先说明同步需求: 业务需要只同步 objectClass 类型为user的用户
连接ldap查询用户的时候 过滤器只加了

.where("objectClass").is("user")

过滤没有生效,查询的数据大于1000条,超过ldap一次获取的最大值,实际user里面信息没有这么多。
在网上找了过滤数据失败的原因 发现还需要在加一个过滤条件
https://docs.oracle.com/html/E35191_01/ldap-filters-attrs-users.html#ldap-filters-attributes-users-default
加上了 过滤就可以了

(!(objectclass=computer)))

LDAP数据过滤问题的相关教程结束。

《LDAP数据过滤问题.doc》

下载本文的Word格式文档,以方便收藏与打印。