Ldap and groups

Openfire can’t find any groups. There are all users but no groups. I suppose it’s because groups are in different folder. It looks like this:

users are in: ou=Company,ou=All Users,dc=my,dc=domain

groups are in: ou=Company,ou=Groups,dc=my,dc=domain

for users settings I didn’t change anything

for groups I tried different options like:

((objectClass=group)(ou=Company,ou=Groups,dc=my,dc=domainl))

(|(ou=Company,ou=Groups,dc=my,dc=domain))

(|(ou=Company,ou=Groups,dc=my,dc=domain))

I tried default settings of course, I tried with memberOf (I put all of groups in one group and then: memberOf=cn=MainGroup).

And few other ideas, but none of this works.

Do you have any other idea?

Thanks for answers