Log in with LDAP with different hosts

Hello, I have a self hosted server and I use LDAP to log in, but we have different domains in this LDAP, when I send a request to log in with a user that has the same domain as the server, for example login@domain1.com, the server allow the login normally but if a user uses login@domain2.com LDAP does not log in because it does not recognize the user’s @domain, has anyone faced a similar problem with Jitsi’s LDAP? I’ve looked at all the documentation and I haven’t seen anything that works, remembering that using JWT is not an option.

Thanks