LoginLdap: Bad search filter - Matomo 4.15

On the web, when I use “Load User from LDAP” it gives me an error - LDAP search for entries failed. (Unexpected Error, ldap_search returned null)

And on console using this command:
sudo php ./console loginldap:synchronize-users --login=user,name@domain.com -vvv

it gives me an error
WARNING [2023-08-11 01:08:41] 67678 /usr/share/nginx/html/ubuntu/plugins/LoginLdap/Ldap/Client.php(382): Warning - ldap_search(): Search: Bad search filter - Matomo 4.15.0

Synchronized 0 users!

Could not synchronize the following users in LDAP:
user,name@domain.com LDAP search for entries failed. (Unexpected Error, ldap_search returned null)