如何查询ldap属性的空值? 在编程中相当于str1==null ?
我尝试了以下,但它没有工作:
(&(objectCategory=computer)(whenCreated>=20160101000000.0Z)(description=)) (&(objectCategory=computer)(whenCreated>=20160101000000.0Z)(description=''))
你必须否定匹配的通配符* (任何值):
(&(objectCategory=computer)(whenCreated>=20160101000000.0Z)(!description=*))
从微软的LDAP查询基础知识 :
那! 运算符与通配符运算符一起将查找该属性未设置为任何内容的对象。