ldap.groupSearchFilter not work or work bad

i am using this string in ldap.groupSearchFilter

(&(objectCategory=person)(objectClass=user)(lastLogonTimestamp>=1299618720000000 00))(homeMTA=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2))

and this string don`t work good, this string is show error result.

this string don`t work good too

(&(objectCategory=person)(!(distinguishedName=,OU=disabled,))(objectClass=user ))

help me please, and please show и work syntax of query in ad for openfire.

sorry for my bad english.

It’s a group filter, not a user filter.

We use: (&(objectCategory=group)(cn=IM - *))

What exactly are you trying to do?

Sorry, I am using this string

ldap.searchFilter