ldap - LDAP搜索过滤器中的严格小于运算符?

标签 ldap

在 LDAP 搜索过滤器运算符的所有引用资料中,我发现 <=对于“小于或等于”和 >=为“大于或等于”。

真的没有“严格小于”运算符吗?我必须写attribute < threshold如下? (阈值是一个固定值。)

(&(attribute <= threshold)(!(attribute = threshold))) 

在我目前的情况下,属性值是表示日期的整数,例如20120217161853 2012-02-17 16:18:53。

最佳答案

另一个简单的解决方法是反转条件。如果你需要

(attribute < threshold)

那么这也可以写成
!(attribute >= threshold)

关于ldap - LDAP搜索过滤器中的严格小于运算符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9309726/

相关文章:

JAVA LDAP : How do I obtain the Dn?

c++ - 使用 LDAP 和 Windows Active Directory 进行用户身份验证 (Windows Server 2016)

转到 LDAP 搜索 ContextCSN

git - LDAP 组和 Git 源代码托管

c# - System.DirectoryServices.Protocols Paged get all users 代码突然停止获取超过第一页的用户

java - 在 Shiro 中为 JNDILdapRealm 配置授权

c# - Active Directory (LDAP) - 检查帐户锁定/密码过期

linux - nslcd : Errors in/var/log/messages Deleted User

java - BeanCreationException : Invocation of init method failed

java - 在我的计算机上安装虚拟 LDAP 服务器 (Windows 2010)