AD Ldaps integration is not working


I am trying to get AD integration with ldaps, but no luck. LDAP without ssl on port 389 works fine.

Log only says this:

Oct 19 11:08:52 mail Nextcloud[133946]: {"reqId":"ZTDyJOfXJtq9CAzm3p8huAAAAAk","level":2,"time":"2023-10-19T09:08:52+00:00","remoteAddr":"","user":"todde","app":"user_ldap","method":"PROPFIND","url":"/remote.php/dav/files/todde/","message":"Configuration Error (prefix s01): login filter does not contain %uid place holder.","userAgent":"Mozilla/5.0 (Linux) mirall/3.4.2-1ubuntu1 (Nextcloud, linuxmint-5.15.0-86-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"","data":{"app":"user_ldap"}}

I imported the ca certificate from DC to /etc/ssl/certs/ca-certificates.crt

Any idae how I can go and solve this issue?

Would appreciate any hint.