I created an LDAP configuration for my ActiveDirectroy server (WinServ2022). The connection and login works fine.
The problem starts when I define an LDAP Filter that indicates that only people in the MailCowServer group can log in.
It looks as follows: (&(cn=MailCowServer)(objectclass=Group))
Entering the filter proposed in the forum (&(objectClass=user)(|(sAMAccountName=%s)(mail=%s))) also causes a login error.
When I don’t set the LDAP login filter it works without a problem.
Am I defining the LDAP Filter incorrectly?