Question : LDAP query help

i cant get this to work, can you spot the mistake?

(&(objectClass=user)(memberOf=CN=testgroup GroupNameUser,ou=Test,dc=mch,dc=x,dc=gcc,dc=gsi,dc=uk)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

thank you

it goes in to another app for ldap sync   this is based on a template that was in the read me

I can get the same result with my own simple query  but the app doesnt like that one.
1:
(&(objectClass=user)(memberOf=CN=testgroup GroupNameUser,ou=Test,dc=mch,dc=x,dc=gcc,dc=gsi,dc=uk)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

Answer : LDAP query help

I also just tested this on my end and this query worked as well.

(objectClass=user)(memberof=CN=Federal Proposals,DC=domain,DC=com)(!userAccountControl:1.2.840.113556.1.4.803:=2)
Random Solutions  
 
programming4us programming4us