Skip to content
Discussion options

You must be logged in to vote

The issue is with your LDAP filter. Try this:

(&(sAMAccountType=805306368)(!userAccountControl:1.2.840.113556.1.4.803:=2))

Hello BWM - you are correct, the above LDAP filter is PARTIALLY compliant to the RFC open-ldap standards. However, snipeit v4 and below do not properly format the LDAP filter.. you are required to EXCLUDE the surrounding parenthesis.
For full compliance, taking shortcuts like this isnt supported neither:
(!userAccountControl:1.2.840.113556.1.4.803:=2)
should look like
(!(userAccountControl:1.2.840.113556.1.4.803:=2))

For completeness, I got this working perfectly:
&(objectCategory=person)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!(sAMAccoun…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by snipe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #8348 on August 20, 2025 10:38.