Problems with LDAP authentication with two domains, and matching username

I have two domains examples and samples, any user that is only in one domain can login to OpenFire just fine. If a username is in both domains examples\jdoe and samples\jdoe neither can login.

Normally, they just login using jdoe but that doesnt’ work, nor does examples\jdoe or samples\jdoe

How can I fix this?