How to filter group?

dn: uid=spark1@abc.dns04.com,ou=abc.dns04.com,o=email

qmailDotMode: ldapwithprog

mailMessageStore: /storage/abc.dns04.com/users/spark1

givenName: spark1

sn: spark1

mailQuotaSize: 10485760

userPassword:: e1NIQX1mRXFOQ2NvM1lxOWg1WlVnbEQzQ1pKVDRsQnM9

mail: spark1@abc.dns04.com

objectClass: top

objectClass: inetOrgPerson

objectClass: qmailUser

uid: spark1@abc.dns04.com

accountStatus: active

mailHost: mail.yahoo.com.cn

cn: spark1

structuralObjectClass: inetOrgPerson

entryUUID: 9aa5adb8-453e-1030-9e0a-d11c63ce2e37

creatorsName: cn=Manager,o=email

createTimestamp: 20110718040314Z

entryCSN: 20110718040314Z#000000#00#000000

modifiersName: cn=Manager,o=email

modifyTimestamp: 20110718040314Z

dn: uid=spark2@abc.dns04.com,ou=abc.dns04.com,o=email

qmailDotMode: ldapwithprog

mailMessageStore: /storage/abc.dns04.com/users/spark2

givenName: spark2

sn: spark2

mailQuotaSize: 10485760

userPassword:: e1NIQX1mRXFOQ2NvM1lxOWg1WlVnbEQzQ1pKVDRsQnM9

mail: spark2@abc.dns04.com

objectClass: top

objectClass: inetOrgPerson

objectClass: qmailUser

uid: spark2@abc.dns04.com

accountStatus: active

mailHost: mail.yahoo.com.cn

cn: spark2

structuralObjectClass: inetOrgPerson

entryUUID: a289eabc-453e-1030-9e0b-d11c63ce2e37

creatorsName: cn=Manager,o=email

createTimestamp: 20110718040327Z

entryCSN: 20110718040327Z#000000#00#000000

modifiersName: cn=Manager,o=email

modifyTimestamp: 20110718040327Z

dn: uid=spark3@abc.dns04.com,ou=abc.dns04.com,o=email

qmailDotMode: ldapwithprog

mailMessageStore: /storage/abc.dns04.com/users/spark3

givenName: spark3

sn: spark3

mailQuotaSize: 10485760

userPassword:: e1NIQX1mRXFOQ2NvM1lxOWg1WlVnbEQzQ1pKVDRsQnM9

mail: spark3@abc.dns04.com

objectClass: top

objectClass: inetOrgPerson

objectClass: qmailUser

uid: spark3@abc.dns04.com

accountStatus: active

mailHost: mail.yahoo.com.cn

cn: spark3

structuralObjectClass: inetOrgPerson

entryUUID: a927ea7c-453e-1030-9e0c-d11c63ce2e37

creatorsName: cn=Manager,o=email

createTimestamp: 20110718040338Z

entryCSN: 20110718040338Z#000000#00#000000

modifiersName: cn=Manager,o=email

modifyTimestamp: 20110718040338Z

dn: uid=spark4@abc.dns04.com,ou=abc.dns04.com,o=email

qmailDotMode: ldapwithprog

mailMessageStore: /storage/abc.dns04.com/users/spark4

givenName: spark4

sn: spark4

mailQuotaSize: 10485760

userPassword:: e1NIQX1mRXFOQ2NvM1lxOWg1WlVnbEQzQ1pKVDRsQnM9

mail: spark4@abc.dns04.com

objectClass: top

objectClass: inetOrgPerson

objectClass: qmailUser

uid: spark4@abc.dns04.com

accountStatus: active

mailHost: mail.yahoo.com.cn

cn: spark4

structuralObjectClass: inetOrgPerson

entryUUID: ae16938a-453e-1030-9e0d-d11c63ce2e37

creatorsName: cn=Manager,o=email

createTimestamp: 20110718040346Z

entryCSN: 20110718040346Z#000000#00#000000

modifiersName: cn=Manager,o=email

modifyTimestamp: 20110718040346Z

actually, my openldap server have multiple domains entries, I want to filter openfire groups user by domain.

how to define these openldap entries group filter string?

thanks.