Active directory 使用纯ldap查询搜索设置了DONT\u EXPIRE\u密码标志的useraccountcontrol

Active directory 使用纯ldap查询搜索设置了DONT\u EXPIRE\u密码标志的useraccountcontrol,active-directory,ldap,Active Directory,Ldap,我正在尝试使用ldapsearch命令搜索设置了DONT_EXPIRE_PASSWD标志的帐户: 由于ldap查询语法不支持二进制和op,我应该在userAccountControl属性上使用什么 我无法使用Get-AdUser powershell命令,我需要一个LDAP查询。LDAP确实支持二进制和操作,例如 (&(objectCategory=Person)(UserAccountControl:1.2.840.113556.1.4.803:= 65536))

我正在尝试使用ldapsearch命令搜索设置了DONT_EXPIRE_PASSWD标志的帐户:

由于ldap查询语法不支持二进制和op,我应该在
userAccountControl
属性上使用什么


我无法使用Get-AdUser powershell命令,我需要一个LDAP查询。

LDAP确实支持二进制和操作,例如

(&(objectCategory=Person)(UserAccountControl:1.2.840.113556.1.4.803:= 65536))