04/12/2022 01:05 PM
I'm trying to use the following ldap query in our AD connection and getting a "Unbalanced parenthesis" error in our logs.
Trying to bring in all object = person, class = user, is not inactive, does not have an employeeID = 9000000, and also does not have a null EmployeeID.
(&(objectCategory=person)(objectClass=user)(sAMAccountName=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!(employeeID=9000000))(!(!employeeID=*)))
This ldap filter works when doing a ldap lookup from inside active directory and I don't see any extra or missing paranthesis.
Does anyone have any suggestions as to why this is failing in the connection?
Solved! Go to Solution.
04/12/2022 02:20 PM
There is an issue with search filter parathenthesis, you need to correct that.
(&
(objectCategory=person)
(objectClass=user)
(sAMAccountName=*)
(!
(userAccountControl:1.2.840.113556.1.4.803:=2)
)
(!(employeeID=9000000))
(!(employeeID=*))
)
04/12/2022 02:20 PM
This results in the exact same error message.