Cannot connect LDAP integration

Hi all,

I have this issue that I cannot make LDAP sync integration work with our Active Directory.
Setup

Server: Ubuntu 20.04 LTS

I have a dedicated ldap user for this.
When I try to connect over ssh and cli it seems like it works and can read the list of users/objects.
I run this command from the server: ldapsearch -b dc=mydomain,dc=mydomain -H ldap://myIPaddress -D myldapuser@mydomain.mydomain -W -d1

Output is:

search result

search: 2
ldap_parse_result
ber_scanf fmt ({iAA) ber:
ber_scanf fmt (}) ber:
ldap_err2string
result: 0 Success
ldap_msgfree

numResponses: 410

numEntries: 406

numReferences: 3

ldap_free_connection 1 1
ldap_send_unbind
ber_flush2: 7 bytes to sd 3
ldap_free_connection: actually freed

But when I try it from the web GUI I get these errors:
image

The logs say this:

Error PHP Error: ldap_search(): Search: Operations error at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#336

Warning user_ldap Configuration Error (prefix s01): login filter does not contain %uid place holder.

Warning user_ldap Configuration Error (prefix s01): No LDAP Login Filter given!

Warning user_ldap Configuration Error (prefix s01): login filter does not contain %uid place holder.

Warning user_ldap Configuration Error (prefix s01): No LDAP Login Filter given!

What can I do from here?